Fix sidebar borders (#6752)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-09-27 11:24:54 +04:00 committed by GitHub
parent 28dbc1bae5
commit 14e6a85301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 10 deletions

View File

@ -23,6 +23,9 @@
min-width: 0;
border: 1px solid var(--theme-divider-color); // var(--global-surface-02-BorderColor);
border-radius: var(--small-focus-BorderRadius);
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border-right: 0;
&:not(.modal) {
background-color: var(--theme-panel-color); // var(--global-surface-02-BackgroundColor);

View File

@ -910,6 +910,8 @@
inset: 0;
border: 1px solid var(--theme-divider-color);
border-radius: var(--medium-BorderRadius);
border-bottom-right-radius: 0;
border-top-right-radius: 0;
pointer-events: none;
}
.antiPanel-application {

View File

@ -165,10 +165,7 @@
width: calc(100% - 3.5rem);
height: 100%;
background: var(--theme-panel-color);
border-right: 1px solid var(--global-ui-BorderColor);
border-top-left-radius: var(--small-focus-BorderRadius);
border-bottom-left-radius: var(--small-focus-BorderRadius);
}
.component {

View File

@ -23,4 +23,4 @@
export let selected: Ref<Widget> | undefined = undefined
</script>
<WidgetsBar {widgets} {preferences} {selected} roundBorder />
<WidgetsBar {widgets} {preferences} {selected} />

View File

@ -24,7 +24,6 @@
export let widgets: Widget[] = []
export let preferences: WidgetPreference[] = []
export let selected: Ref<Widget> | undefined = undefined
export let roundBorder = false
function handleAddWidget (): void {
showPopup(AddWidgetsPopup, { widgets })
@ -49,7 +48,7 @@
.filter((widget): widget is Widget => widget !== undefined && widget.type === WidgetType.Configurable)
</script>
<div class="root" class:roundBorder>
<div class="root">
<div class="block">
{#each fixedWidgets as widget}
<WidgetPresenter
@ -104,10 +103,6 @@
max-width: 3.5rem;
border-top: 1px solid var(--theme-divider-color);
overflow-y: auto;
&.roundBorder {
border-top-left-radius: var(--small-focus-BorderRadius);
}
}
.block {