From 551d705ee1c84f9281a283e6813da6f10cf71395 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 10 Feb 2026 21:52:22 -0800 Subject: [PATCH] adjust fixed-width columns on the Item Detail list and prevent text wrapping --- .../item-detail-list/item-detail-list.module.css | 3 +++ .../components/item-list/item-detail-list/utils.ts | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/item-list/item-detail-list/item-detail-list.module.css b/src/renderer/components/item-list/item-detail-list/item-detail-list.module.css index 987b1df4d..374f9869c 100644 --- a/src/renderer/components/item-list/item-detail-list/item-detail-list.module.css +++ b/src/renderer/components/item-list/item-detail-list/item-detail-list.module.css @@ -56,6 +56,7 @@ .tracks-table-header { display: flex; + flex-shrink: 0; flex-wrap: nowrap; align-items: center; width: 100%; @@ -80,12 +81,14 @@ .track-header-cell { position: relative; display: flex; + flex-wrap: nowrap; align-items: center; min-width: 0; min-height: 60%; padding-right: var(--theme-spacing-sm); padding-left: var(--theme-spacing-sm); overflow: visible; + white-space: nowrap; } .track-header-cell-no-h-padding { diff --git a/src/renderer/components/item-list/item-detail-list/utils.ts b/src/renderer/components/item-list/item-detail-list/utils.ts index 4b52ea975..2f356d23d 100644 --- a/src/renderer/components/item-list/item-detail-list/utils.ts +++ b/src/renderer/components/item-list/item-detail-list/utils.ts @@ -2,8 +2,8 @@ import { TableColumn } from '/@/shared/types/types'; const FIXED_TRACK_COLUMN_WIDTHS: Partial> = { [TableColumn.ACTIONS]: 32, - [TableColumn.BIT_DEPTH]: 80, - [TableColumn.BIT_RATE]: 80, + [TableColumn.BIT_DEPTH]: 88, + [TableColumn.BIT_RATE]: 88, [TableColumn.BPM]: 56, [TableColumn.CHANNELS]: 80, [TableColumn.CODEC]: 80, @@ -11,8 +11,8 @@ const FIXED_TRACK_COLUMN_WIDTHS: Partial> = { [TableColumn.DISC_NUMBER]: 36, [TableColumn.DURATION]: 72, [TableColumn.RELEASE_DATE]: 128, - [TableColumn.SAMPLE_RATE]: 90, - [TableColumn.TRACK_NUMBER]: 56, + [TableColumn.SAMPLE_RATE]: 112, + [TableColumn.TRACK_NUMBER]: 64, [TableColumn.USER_FAVORITE]: 32, [TableColumn.USER_RATING]: 64, [TableColumn.YEAR]: 56,