Skip to content

Commit 8c5e4ec

Browse files
committed
Adapt mobile display
1 parent a6e55e6 commit 8c5e4ec

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def build_html(cards_html: str) -> str:
346346
justify-content: space-between;
347347
}}
348348
349-
.code-block code {{ flex: 1; user-select: all; }}
349+
.code-block code {{ flex: 1; user-select: all; overflow-x: auto; }}
350350
351351
.copy-btn {{
352352
background: none;
@@ -384,7 +384,7 @@ def build_html(cards_html: str) -> str:
384384
.diff-badge {{
385385
font-size: 0.75rem;
386386
padding: 0.1rem 0.5rem;
387-
border-radius: 2em;
387+
border-radius: 0.5rem;
388388
font-weight: 500;
389389
margin-left: auto;
390390
}}

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
justify-content: space-between;
160160
}
161161

162-
.code-block code { flex: 1; user-select: all; }
162+
.code-block code { flex: 1; user-select: all; overflow-x: auto; }
163163

164164
.copy-btn {
165165
background: none;
@@ -197,7 +197,7 @@
197197
.diff-badge {
198198
font-size: 0.75rem;
199199
padding: 0.1rem 0.5rem;
200-
border-radius: 2em;
200+
border-radius: 0.5rem;
201201
font-weight: 500;
202202
margin-left: auto;
203203
}

0 commit comments

Comments
 (0)