Skip to content

Commit 224548d

Browse files
authored
fix(desktop): adjust layout properties in DialogSelectServer component (#23589)
1 parent 8a7bb7c commit 224548d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/app/src/components/dialog-select-server.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export function DialogSelectServer() {
504504

505505
return (
506506
<Dialog title={formTitle()}>
507-
<div class="flex flex-col gap-2">
507+
<div class="flex flex-1 min-h-0 flex-col gap-2">
508508
<Show
509509
when={!isFormMode()}
510510
fallback={
@@ -539,7 +539,7 @@ export function DialogSelectServer() {
539539
if (x) void select(x)
540540
}}
541541
divider={true}
542-
class="px-5 [&_[data-slot=list-search-wrapper]]:w-full [&_[data-slot=list-scroll]]h-[300px] [&_[data-slot=list-scroll]]:overflow-y-auto [&_[data-slot=list-items]]:bg-surface-base [&_[data-slot=list-items]]:rounded-md [&_[data-slot=list-item]]:min-h-14 [&_[data-slot=list-item]]:p-3 [&_[data-slot=list-item]]:!bg-transparent"
542+
class="flex-1 min-h-0 px-5 [&_[data-slot=list-search-wrapper]]:w-full [&_[data-slot=list-scroll]]:flex-1 [&_[data-slot=list-scroll]]:overflow-y-auto [&_[data-slot=list-items]]:bg-surface-base [&_[data-slot=list-items]]:rounded-md [&_[data-slot=list-item]]:min-h-14 [&_[data-slot=list-item]]:p-3 [&_[data-slot=list-item]]:!bg-transparent"
543543
>
544544
{(i) => {
545545
const key = ServerConnection.key(i)
@@ -619,7 +619,7 @@ export function DialogSelectServer() {
619619
</List>
620620
</Show>
621621

622-
<div class="px-5 pb-5">
622+
<div class="shrink-0 px-5 pb-5">
623623
<Show
624624
when={isFormMode()}
625625
fallback={

0 commit comments

Comments
 (0)