mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 08:39:02 +03:00
fix(app): match search dialog radius and background (#60200)
This commit is contained in:
committed by
GitHub
Unverified
parent
4a05d11822
commit
d9d3548548
@@ -8,7 +8,7 @@
|
||||
max-height: min(calc(100vh - 96px), 480px);
|
||||
min-height: 0;
|
||||
margin-top: max(48px, calc((100vh - 480px) / 2));
|
||||
background: var(--v2-background-bg-layer-01);
|
||||
background: var(--v2-background-bg-base);
|
||||
box-shadow: var(--v2-elevation-overlay);
|
||||
}
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ export const DialogConnectProvider: Component<{
|
||||
<Dialog
|
||||
preventBackdropDismiss={state.authorization}
|
||||
// The top edge stays where the provider list puts it, so a step that fits its content only moves the bottom edge.
|
||||
containerClass={`!self-start !bg-v2-background-bg-base [--connect-top:max(8px,calc((100vh_-_512px)/2))] !mt-[var(--connect-top)] !w-[min(calc(100vw_-_16px),640px)] ${
|
||||
containerClass={`!self-start !rounded-[12px] !bg-v2-background-bg-base [--connect-top:max(8px,calc((100vh_-_512px)/2))] !mt-[var(--connect-top)] !w-[min(calc(100vw_-_16px),640px)] ${
|
||||
state.modelProvider
|
||||
? "!h-[min(calc(100vh_-_8px_-_var(--connect-top)),560px)]"
|
||||
: controller.selected()
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
padding: 0 6px 8px;
|
||||
}
|
||||
|
||||
[data-component="dialog-v2"]:has(.settings-manage-models-dialog) [data-slot="dialog-container"] {
|
||||
border-radius: 12px;
|
||||
background: var(--v2-background-bg-base);
|
||||
}
|
||||
|
||||
.settings-manage-models-dialog .settings-panel.settings-models {
|
||||
height: 100%;
|
||||
gap: 0;
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
[data-component="dialog-v2"]:has(.model-dialog) [data-slot="dialog-container"] {
|
||||
width: min(calc(100vw - 24px), 480px);
|
||||
min-height: 0;
|
||||
border-radius: 10px;
|
||||
border-radius: 12px;
|
||||
background: var(--v2-background-bg-base);
|
||||
}
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
max-height: min(calc(100vh - 96px), 480px);
|
||||
min-height: 0;
|
||||
margin-top: max(48px, calc((100vh - 480px) / 2));
|
||||
background: var(--v2-background-bg-layer-01);
|
||||
background: var(--v2-background-bg-base);
|
||||
box-shadow: var(--v2-elevation-overlay);
|
||||
}
|
||||
|
||||
@@ -202,11 +202,6 @@
|
||||
|
||||
[data-slot="search-list-header"] {
|
||||
padding-inline: 12px;
|
||||
background: var(--v2-background-bg-layer-01);
|
||||
}
|
||||
|
||||
[data-slot="search-list-fade"]::before {
|
||||
background: linear-gradient(var(--v2-background-bg-layer-01), transparent);
|
||||
}
|
||||
|
||||
[data-slot="search-list-row"] {
|
||||
|
||||
@@ -240,10 +240,6 @@
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
[data-component="dialog-v2"]:has(.fork-dialog) [data-slot="dialog-container"] {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.fork-dialog [data-slot="search-list-search"] {
|
||||
padding: 6px 6px 9px;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user