Skip to content

Commit 524ba1b

Browse files
authored
Add min-width to comparison table (#1770)
* Add min-width to comparison table * Remove centered class around plots
1 parent ea89ee6 commit 524ba1b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

webview/src/plots/components/PlotsContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const PlotsContainer: React.FC<PlotsContainerProps> = ({
127127
sectionTitle
128128
)}
129129
</summary>
130-
<div className={styles.centered}>
130+
<div>
131131
{open && (
132132
<div className={sizeClass} data-testid="plots-wrapper">
133133
{children}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,16 +219,19 @@ $gap: 20px;
219219
.smallPlots & {
220220
width: calc(25% * var(--scale));
221221
padding-right: $gap;
222+
min-width: calc(300px * var(--scale));
222223
}
223224

224225
.regularPlots & {
225226
width: calc(33% * var(--scale));
226227
padding-right: $gap;
228+
min-width: calc(400px * var(--scale));
227229
}
228230

229231
.largePlots & {
230232
width: calc(50% * var(--scale));
231233
padding-right: $gap;
234+
min-width: calc(500px * var(--scale));
232235
}
233236

234237
@media (min-width: 1000px) {

0 commit comments

Comments
 (0)