Skip to content

Commit a687134

Browse files
committed
🐛 Margin/padding for narrow view; Fixes #20
1 parent ff1fc0a commit a687134

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

src/styles/plugin-settings.scss

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,26 @@
1919
#snippetor-modal .modal {
2020
background-color: var(--background-primary);
2121
color: var(--text-normal);
22-
width: 80vw;
23-
max-width: 90vw;
2422

2523
--toggle-thumb-color: white;
2624
--slider-track-background: var(--background-modifier-border);
2725
--background-modifier-border-hover: var(--background-modifier-border);
2826

27+
// Max width for narrow displays
28+
width: 100vw;
29+
max-width: 100vw;
30+
31+
// remove padding for narrow displays
32+
.snippetor-content.markdown-preview-view {
33+
padding: 0;
34+
}
35+
2936
input[type="text"] {
3037
background-color: var(--background-primary);
3138
}
3239

3340
.setting-item.snippet-filename {
34-
button.generate-css:active:after {
41+
button.generate-css:active::after {
3542
content: "⚙️";
3643
position: absolute;
3744
right: 15px;
@@ -221,3 +228,15 @@
221228
display: block;
222229
}
223230
}
231+
232+
// For wider displays, fix the width (float center) and use standard padding
233+
@media (min-width: 800px) {
234+
#snippetor-modal .modal {
235+
width: 90vw;
236+
max-width: 1000px;
237+
238+
.snippetor-content.markdown-preview-view {
239+
padding: var(--file-margins);
240+
}
241+
}
242+
}

0 commit comments

Comments
 (0)