Skip to content

Commit ff9be53

Browse files
committed
Adjustments to support floating side panels and fixes for panel gaps
1 parent c0c2998 commit ff9be53

File tree

6 files changed

+9
-13
lines changed

6 files changed

+9
-13
lines changed

packages/theme/styles/_colors.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
--theme-refinput-border: rgba(255, 255, 255, .1);
125125

126126
// Be aware to update defineAlpha() function in colors.ts
127-
--theme-bg-color: #1A1A28;
127+
--theme-bg-color: #14141f;
128128
--theme-bg-accent-color: rgba(0, 0, 0, .08);
129129
--theme-bg-dark-color: rgba(0, 0, 0, .2);
130130
--theme-back-color: #0f0f18;

packages/theme/styles/common.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@
113113
flex-direction: column;
114114
min-width: var(--app-panel-width);
115115
width: var(--app-panel-width);
116-
height: 100%;
117-
border-right: 1px solid var(--theme-navpanel-divider);
116+
margin: var(--spacing-1);
117+
border: 1px solid var(--theme-divider-color);
118+
border-radius: var(--medium-BorderRadius) !important;
118119
}
119120
&.horizonatl {
120121
min-height: var(--app-panel-width);
@@ -143,7 +144,7 @@
143144

144145
&:not(.second) {
145146
background-color: var(--theme-workbench-color);
146-
margin: var(--spacing-2) 0 var(--spacing-2) var(--spacing-2); // Changed from all sides to top, bottom, left only
147+
margin-right: var(--spacing-2);
147148
border: 1px solid var(--theme-divider-color);
148149
border-radius: var(--small-focus-BorderRadius);
149150
}

packages/theme/styles/components.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@
2020
flex-grow: 1;
2121
min-height: 0;
2222
min-width: 0;
23-
margin: var(--spacing-2);
2423
border: 1px solid var(--theme-divider-color); // var(--global-surface-02-BorderColor);
2524
border-radius: var(--small-focus-BorderRadius);
2625
padding: var(--spacing-2);
2726

2827
&:not(.modal) {
2928
background-color: var(--theme-panel-color); // var(--global-surface-02-BackgroundColor);
30-
margin: var(--spacing-2);
3129
}
3230
&.modal {
3331
overflow: hidden;
3432
background-color: var(--theme-comp-header-color); // var(--global-surface-02-BackgroundColor);
33+
margin-left: var(--spacing-2);
3534
}
3635
&.beforeAside {
3736
border-right: none;

plugins/time-resources/src/components/PlanView.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
flex-direction: column;
113113
flex-grow: 1;
114114
background-color: var(--theme-workbench-color);
115-
margin: var(--spacing-2) 0 var(--spacing-2) var(--spacing-2);
116115
border: 1px solid var(--theme-divider-color);
117116
border-radius: var(--small-focus-BorderRadius);
118117
min-width: 320px;

plugins/time-resources/src/components/PlanningCalendar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
</script>
176176

177177
<div
178-
class="hulyComponent modal"
178+
class="hulyComponent modal margin-left-2"
179179
bind:this={element}
180180
use:resizeObserver={(element) => {
181181
showLabel = showLabel ? element.clientWidth > rem(3.5) + 399 : element.clientWidth > rem(3.5) + 400

plugins/workbench-resources/src/components/Workbench.svelte

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,23 +1096,20 @@
10961096
min-width: 0;
10971097
min-height: 0;
10981098
width: 100%;
1099-
height: 100%;
1100-
background-color: var(--theme-panel-color);
11011099
touch-action: none;
1100+
margin: var(--spacing-1);
11021101
11031102
&.inner {
11041103
background-color: var(--theme-navpanel-color);
11051104
11061105
&.rounded {
1107-
border-radius: 0 var(--medium-BorderRadius) var(--medium-BorderRadius) 0;
1106+
border-radius: var(--medium-BorderRadius);
11081107
}
11091108
}
11101109
&:not(.inner)::after {
11111110
position: absolute;
11121111
content: '';
11131112
inset: 0;
1114-
border: 1px solid var(--theme-divider-color);
1115-
border-radius: var(--medium-BorderRadius);
11161113
pointer-events: none;
11171114
}
11181115
.antiPanel-application.horizontal {

0 commit comments

Comments
 (0)