From 06dbe14d765f284ee4de22ea716f74983e928d4b Mon Sep 17 00:00:00 2001 From: Jokin Date: Sat, 11 Jul 2026 20:30:24 +0200 Subject: [PATCH] Toolbar buttons show text labels when the panel is wide Container query on the panel (Tailwind v4 @container): Copy, Edit, Rename and Delete grow labels at >=30rem panel width; New folder, New file and Permissions stay icon-only (self-explanatory icons). Tooltips unchanged. Co-Authored-By: Claude Fable 5 --- ui/src/app/file-panel/file-panel.html | 15 ++++++++++----- ui/src/app/file-panel/file-panel.ts | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ui/src/app/file-panel/file-panel.html b/ui/src/app/file-panel/file-panel.html index c831812..a985a5d 100644 --- a/ui/src/app/file-panel/file-panel.html +++ b/ui/src/app/file-panel/file-panel.html @@ -29,27 +29,31 @@
- + @if (menuOpen()) { diff --git a/ui/src/app/file-panel/file-panel.ts b/ui/src/app/file-panel/file-panel.ts index 5ae4b99..3cd2927 100644 --- a/ui/src/app/file-panel/file-panel.ts +++ b/ui/src/app/file-panel/file-panel.ts @@ -21,7 +21,7 @@ import { TransfersService } from '../transfers.service'; selector: 'app-file-panel', imports: [NgIcon], templateUrl: './file-panel.html', - host: { class: 'flex min-w-0 flex-1 flex-col overflow-hidden' }, + host: { class: '@container flex min-w-0 flex-1 flex-col overflow-hidden' }, }) export class FilePanel { readonly side = input.required();