Skip to content

Commit c803254

Browse files
authored
Remove empty space in plots and make them more compact (#1749)
1 parent d843598 commit c803254

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

webview/src/plots/components/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const fontWeight = 'normal' as FontWeight
88

99
const title = {
1010
font,
11-
fontSize: 16,
11+
fontSize: 12,
1212
fontWeight
1313
}
1414

webview/src/plots/components/styles.module.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,11 @@ $gap: 20px;
8484
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
8585

8686
:global(.role-axis-title) text {
87-
font-size: 12px;
87+
font-size: 10px;
8888
}
8989
}
9090

9191
@media (min-width: 800px) {
92-
:not(.multiViewPlotsGrid) {
93-
justify-content: space-around;
94-
}
95-
9692
.largePlots & {
9793
grid-template-columns: 1fr 1fr;
9894
}
@@ -144,11 +140,11 @@ $gap: 20px;
144140
.plot {
145141
aspect-ratio: 4 / 3;
146142
overflow: visible;
147-
padding: 20px 10px 10px 10px;
148143
cursor: grab;
149144
position: relative;
150145
background: var(--editor-foreground-transparency-1);
151146
border: none;
147+
padding-top: 5px;
152148

153149
.plotGripIcon {
154150
position: absolute;
@@ -300,6 +296,7 @@ $gap: 20px;
300296
height: 100%;
301297
background: none;
302298
border: none;
299+
padding: 0;
303300
}
304301

305302
.zoomedInPlot {

0 commit comments

Comments
 (0)