clients/apps/web/src
Alex 03340aee71
[PM-31163] stabilize table column widths with fixed layout (#18708)
* stabilize table column widths with fixed layout (PM-31163)

Add layout="fixed" and explicit width classes to report tables to prevent
column widths from shifting during virtual scroll.

Files changed:
- weak-passwords-report.component.html
- reused-passwords-report.component.html
- exposed-passwords-report.component.html
- inactive-two-factor-report.component.html
- unsecured-websites-report.component.html

* use auto width for name column to fix width calculation (PM-31163)

  Remove tw-w-1/2 from name column headers. With layout="fixed", the
  explicit percentages didn't sum to 100%, causing inconsistent column widths.

  Before: | 48px | 50% | 25% | 25% | = 48px + 100% (overflow)
  After:  | 48px | auto | 25% | 25% | = columns sum correctly

  Name column now uses auto to fill remaining space.

* render headers in Admin Console to fix column widths (PM-31163)

  Admin Console reports had a very wide icon column because no headers were
  rendered. Without headers, table-layout: fixed uses data row content to
  determine column widths, causing inconsistent sizing.

  Root cause:
  Three reports had their entire <ng-container header> block inside
  @if (!isAdminConsoleActive), so when isAdminConsoleActive=true (Admin
  Console), no headers were rendered at all.

  Before (broken):
    @if (!isAdminConsoleActive) {
      <ng-container header>        <!-- Entire header skipped in Admin Console -->
        <th>Icon</th>
        <th>Name</th>
        <th>Owner</th>
      </ng-container>
    }

  After (fixed):
    <ng-container header>          <!-- Always render headers -->
      <th>Icon</th>
      <th>Name</th>
      @if (!isAdminConsoleActive) {
        <th>Owner</th>             <!-- Only Owner is conditional -->
      }
    </ng-container>

  This matches the pattern already used by weak-passwords-report and
  exposed-passwords-report, which were working correctly.

  Files changed:
  - unsecured-websites-report.component.html
  - reused-passwords-report.component.html
  - inactive-two-factor-report.component.html

  Result:
  - Admin Console now renders headers with correct column widths
  - Icon column is 48px (tw-w-12) as expected
  - Owner column properly hidden in Admin Console view

* truncate long item names to prevent column overflow

- you can hover cursor for tooltip to see full name
2026-02-17 20:31:08 -08:00
..
app [PM-31163] stabilize table column widths with fixed layout (#18708) 2026-02-17 20:31:08 -08:00
connectors [PM-32212] Migrate platform font icons to bit-icon (#18970) 2026-02-13 09:43:42 -05:00
images [PM-30879] Huntress Integration (#18505) 2026-01-23 13:36:54 -06:00
locales [PM-27782] Update Access Intelligence loading state text (#18808) 2026-02-17 20:29:41 -08:00
scss Revert "Disable native icon for datetime-local field and use our own icons for stylizing (#18633)" (#18796) 2026-02-05 16:44:29 -05:00
utils [deps] SM: Update typescript-eslint monorepo to v8 (major) (#10601) 2025-01-14 11:23:59 -05:00
videos [PM-27619] assign tasks component (#17125) 2025-11-03 15:25:19 +00:00
.nojekyll Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
404.html [CL-805] [CL-521] anon layout illustrations (#16002) 2025-08-20 15:06:24 -04:00
app-id.json Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
browserconfig.xml Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
favicon.ico Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
global.d.ts Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
index.html [PM-32212] Migrate platform font icons to bit-icon (#18970) 2026-02-13 09:43:42 -05:00
main.ts [PM-17407] [CL-665] Remove jQuery and Popper.js (#14621) 2025-05-13 21:36:26 +02:00
manifest.json Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
polyfills.ts Improve SDK direct function usage (#13353) 2025-02-26 09:08:42 +01:00
theme.ts [PM-23374] Default to system theme in web app (#15755) 2025-07-25 15:33:14 -04:00
translation-constants.ts Add tamil language support to desktop and web (#16334) 2025-09-08 10:45:41 -04:00
version.json Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00