Skip to content

Commit 76ad845

Browse files
feat: Remove bottom bars and move buttons inside editor
- Repositioned workspace footer to overlay on canvas with transparent background - Increased footer button size from 19x19px to 28x28px to match tab link buttons - Extended workspace chart to full height (bottom: 0) - Removed palette footer completely (display: none) - Removed sidebar footer and extended sidebar content to full height - Workspace footer now floats on top of canvas editor at the bottom Fixes #50 Co-authored-by: Dimitrie Hoekstra <[email protected]>
1 parent 6e04f29 commit 76ad845

File tree

4 files changed

+34
-12
lines changed

4 files changed

+34
-12
lines changed

packages/node_modules/@node-red/editor-client/src/sass/mixins.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,26 +205,26 @@
205205

206206
@mixin component-footer-button {
207207
@include workspace-button;
208-
font-size: 12px;
209-
line-height: 18px;
210-
width: 19px;
211-
height: 19px;
208+
font-size: 14px;
209+
line-height: 26px;
210+
width: 28px;
211+
height: 28px;
212212
padding: 0;
213213
&.text-button {
214214
width: auto;
215-
padding: 0 5px;
215+
padding: 0 8px;
216216
}
217217
}
218218
@mixin component-footer-button-toggle {
219219
@include workspace-button-toggle;
220-
font-size: 12px;
221-
line-height: 18px;
222-
height: 19px;
223-
width: 19px;
220+
font-size: 14px;
221+
line-height: 26px;
222+
height: 28px;
223+
width: 28px;
224224
padding: 0;
225225
&.text-button {
226226
width: auto;
227-
padding: 0 5px;
227+
padding: 0 8px;
228228
}
229229
}
230230

packages/node_modules/@node-red/editor-client/src/sass/palette.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
@include mixins.component-border;
3030
transition: width 0.2s ease-in-out;
3131

32+
.red-ui-component-footer {
33+
display: none;
34+
}
35+
3236
&:before {
3337
content: '';
3438
top: 0px;

packages/node_modules/@node-red/editor-client/src/sass/sidebar.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
box-sizing: border-box;
2727
z-index: 10;
2828
@include mixins.component-border;
29+
30+
.red-ui-sidebar-footer {
31+
display: none;
32+
}
2933
}
3034

3135
#red-ui-sidebar.closing {
@@ -37,7 +41,7 @@
3741
background: var(--red-ui-secondary-background);
3842
top: 35px;
3943
right: 0;
40-
bottom: 25px;
44+
bottom: 0px;
4145
left: 0px;
4246
overflow-y: auto;
4347
}

packages/node_modules/@node-red/editor-client/src/sass/workspace.scss

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#red-ui-workspace-chart {
3232
overflow: auto;
3333
position: absolute;
34-
bottom:26px;
34+
bottom:0px;
3535
top: 35px;
3636
left:0px;
3737
right:0px;
@@ -176,6 +176,20 @@
176176
}
177177
}
178178

179+
#red-ui-workspace-footer {
180+
position: absolute;
181+
bottom: 0;
182+
left: 0;
183+
right: 0;
184+
z-index: 100;
185+
background: transparent;
186+
border-top: none;
187+
height: 36px;
188+
line-height: 36px;
189+
padding: 4px;
190+
text-align: right;
191+
}
192+
179193
a.red-ui-footer-button,
180194
button.red-ui-footer-button {
181195
@include mixins.component-footer-button;

0 commit comments

Comments
 (0)