From 2f847f525e30bb7be689727bd87a36898662f24a Mon Sep 17 00:00:00 2001 From: Alessandro <155005371+3clyp50@users.noreply.github.com> Date: Tue, 23 Jun 2026 12:40:26 +0200 Subject: [PATCH] Keep project actions inline on mobile Update the Projects modal card layout so edit/delete and activation controls stay beside the project title on narrow viewports. Add truncation for long project titles and paths, collapse activate/deactivate labels on phones, and preserve desktop spacing while preventing horizontal overflow. --- webui/components/projects/project-list.html | 123 +++++++++++++++----- 1 file changed, 92 insertions(+), 31 deletions(-) diff --git a/webui/components/projects/project-list.html b/webui/components/projects/project-list.html index 9906c66ce..27a8bd77a 100644 --- a/webui/components/projects/project-list.html +++ b/webui/components/projects/project-list.html @@ -37,34 +37,36 @@ @@ -94,14 +96,52 @@ border-color: var(--color-highlight); } + .projects-project-card-header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 1em; + } + + .projects-project-card-info { + min-width: 0; + flex: 1 1 auto; + } + .projects-project-card-title { font-weight: bold; font-size: 1.2em; display: flex; align-items: center; + min-width: 0; + line-height: 1.25; } + + .projects-project-card-title-text { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .projects-project-card-name { margin-top: var(--spacing-xs); + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .projects-project-card-actions { + display: flex; + align-items: center; + gap: 0.5em; + flex: 0 0 auto; + } + + .projects-project-card-state-action { + gap: 0.35em; + min-width: 9em; } .project-color-ball { @@ -162,14 +202,35 @@ flex-wrap: wrap; gap: 1em; } + .projects-project-card-header { - flex-direction: column; - gap: 1em; + flex-direction: row; + gap: 0.75em; } + + .projects-project-card-title { + font-size: 1.1em; + } + + .projects-project-card-actions { + gap: 0.4em; + padding-top: 0.08em; + } + + .projects-project-card-state-action { + min-width: 2.75rem; + padding-left: 0.75rem; + padding-right: 0.75rem; + } + + .projects-project-card-action-text { + display: none; + } + .active-project-display { width: 100%; justify-content: space-between; } } - \ No newline at end of file +