From 2c89359d42e86cb1ac6e1962a5c4f127d7350256 Mon Sep 17 00:00:00 2001 From: Devvyn <22340871+opticon454@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:01:28 +0800 Subject: [PATCH] fix(custom-model): Cancel/Launch-anyway buttons stacked instead of side by side Neither dialog's footer had a row layout of its own to override, and .btn-toolbar is display:flex (a block-level flex container with no explicit inline-flex), so with no flex row context each button took its own full-width line and the two stacked vertically. The swap-confirm modal already had a .modal-footer rule (flex-end); the context-warning modal had none at all. Both now share one row-layout rule, centred rather than flex-end per feedback. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01RqZeHrRS6DYcGcGX2p9EwG --- src/web/public/styles.css | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/web/public/styles.css b/src/web/public/styles.css index ccf5012e..6eae004f 100644 --- a/src/web/public/styles.css +++ b/src/web/public/styles.css @@ -6828,11 +6828,17 @@ body.touch-device .terminal-container .xterm .xterm-helper-textarea { /* Custom Model Endpoint Profiles: llama-swap model-swap confirmation — replaces a native confirm() popup (docs/custom-model-endpoints-plan.md) so it looks and feels like the rest of the app instead of a browser chrome dialog. Shares the context-window-too-small - modal's two fixes below since both can appear mid-launch, in the same spot, for the - same reason. */ -#customModelSwapConfirmModal .modal-footer { + modal's fixes below since both can appear mid-launch, in the same spot, for the same + reason — including this rule itself: there is no bare `.modal-footer` base style + anywhere in this file, and `.btn-toolbar` is `display: flex` (a block-level flex + container with no explicit `inline-flex`), so with no row layout of its own each + button took its own full-width line and the two stacked instead of sitting side by + side. Centred rather than flex-end per feedback — a two-button Cancel/confirm footer + reads better centred than pinned to one edge. */ +#customModelSwapConfirmModal .modal-footer, +#customModelContextWarningModal .modal-footer { display: flex; - justify-content: flex-end; + justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border-color);