Skip to content

Commit 0784b1c

Browse files
Bikram GoleBikram Gole
authored andcommitted
Ensure snapshot panel stays compact
1 parent 56e5643 commit 0784b1c

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

styles.css

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,24 +1198,26 @@ section {
11981198
background: transparent;
11991199
border: 0;
12001200
box-shadow: none;
1201-
padding: 0;
1202-
margin-top: 0.4rem;
1203-
width: fit-content;
1204-
max-width: 100%;
1201+
padding: 0.2rem 0;
1202+
margin: 0.4rem auto 0;
1203+
max-width: min(320px, 90vw);
1204+
display: flex;
1205+
justify-content: flex-start;
1206+
align-items: flex-start;
12051207
content-visibility: visible;
12061208
contain: none;
1207-
contain-intrinsic-size: auto;
1208-
}
1209-
1210-
#cli-snapshot .cli-window {
1211-
margin-top: 0;
12121209
}
12131210

12141211
#cli-snapshot::before,
12151212
#cli-snapshot::after {
12161213
content: none;
12171214
}
12181215

1216+
#cli-snapshot .cli-window {
1217+
margin: 0;
1218+
width: min(320px, 90vw);
1219+
}
1220+
12191221
.hero,
12201222
.panel {
12211223
border: 1px solid var(--border);

0 commit comments

Comments
 (0)