diff options
| author | Adam Malczewski <[email protected]> | 2026-06-28 20:49:08 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-28 20:49:08 +0900 |
| commit | bdd1f269359e6a2927f862de1ef64bb56189082f (patch) | |
| tree | 3b4565f9c3f8c567483db77484c1d82b04b5ecb1 | |
| parent | 5c5e43ab068e9b70ecb81e4414ea5460ec8d2510 (diff) | |
| download | dispatch-web-bdd1f269359e6a2927f862de1ef64bb56189082f.tar.gz dispatch-web-bdd1f269359e6a2927f862de1ef64bb56189082f.zip | |
fix(concurrency): keep Set+X inline (nowrap) instead of wrapping to a new line
| -rw-r--r-- | src/features/concurrency/ui/ConcurrencyLimitRow.svelte | 5 | ||||
| -rw-r--r-- | src/features/concurrency/ui/ConcurrencyView.svelte | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/features/concurrency/ui/ConcurrencyLimitRow.svelte b/src/features/concurrency/ui/ConcurrencyLimitRow.svelte index 505847a..44d6726 100644 --- a/src/features/concurrency/ui/ConcurrencyLimitRow.svelte +++ b/src/features/concurrency/ui/ConcurrencyLimitRow.svelte @@ -128,8 +128,9 @@ </script> <div class="flex flex-col gap-1 rounded-box bg-base-200 p-2 text-sm"> - <!-- Line 1: provider + limit + cooldown + Set + ✕ (all on one line). --> - <div class="flex flex-wrap items-center gap-2"> + <!-- Line 1: provider + limit + cooldown + Set + ✕ (all on one line — nowrap so + the buttons never wrap; the provider shrinks via flex-1 + min-w-0). --> + <div class="flex flex-nowrap items-center gap-2"> <span class="min-w-0 flex-1 truncate font-medium font-mono" title={limit.providerId} >{limit.providerId}</span > diff --git a/src/features/concurrency/ui/ConcurrencyView.svelte b/src/features/concurrency/ui/ConcurrencyView.svelte index 05d178a..9d0c292 100644 --- a/src/features/concurrency/ui/ConcurrencyView.svelte +++ b/src/features/concurrency/ui/ConcurrencyView.svelte @@ -363,7 +363,9 @@ ✕ cancels the draft. --> {#if addOpen} <div class="flex flex-col gap-1 rounded-box bg-base-200 p-2 text-sm"> - <div class="flex flex-wrap items-center gap-2"> + <!-- All on one line — nowrap so the buttons never wrap (the provider + dropdown shrinks via flex-1 + min-w-0). --> + <div class="flex flex-nowrap items-center gap-2"> <select class="select select-bordered select-xs min-w-0 flex-1 font-mono" aria-label="Provider" |
