mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-09-30 12:39:42 +02:00
Merge pull request #142 from TeigenZhang/fix/mobile-response-viewer-typography
fix(mobile): improve response-viewer readability on phones
This commit is contained in:
@@ -1259,13 +1259,41 @@ html.mobile-init .file-browser-panel {
|
||||
|
||||
.response-viewer {
|
||||
padding-bottom: var(--safe-area-bottom, 0px);
|
||||
/* dvh tracks the visible viewport on iOS Safari (vh = large viewport and would clip
|
||||
the header/close button off-screen); the vh line is the old-engine fallback */
|
||||
max-height: 88vh;
|
||||
max-height: 92dvh;
|
||||
}
|
||||
|
||||
.response-viewer-body {
|
||||
font-size: 12px;
|
||||
padding: 12px;
|
||||
font-size: 14.5px;
|
||||
line-height: 1.65;
|
||||
padding: 16px 16px 24px;
|
||||
--rv-content-max: 100%;
|
||||
}
|
||||
|
||||
.response-viewer-body .rv-text pre,
|
||||
.response-viewer-body pre {
|
||||
/* Slightly smaller on mobile so diagrams fit better before scrolling */
|
||||
padding: 12px 14px;
|
||||
margin-left: -4px;
|
||||
margin-right: -4px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.response-viewer-body .rv-text pre code,
|
||||
.response-viewer-body pre code {
|
||||
font-size: 11.5px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.response-viewer-body .rv-text h1,
|
||||
.response-viewer-body > h1 { font-size: 1.35em; }
|
||||
.response-viewer-body .rv-text h2,
|
||||
.response-viewer-body > h2 { font-size: 1.2em; }
|
||||
.response-viewer-body .rv-text h3,
|
||||
.response-viewer-body > h3 { font-size: 1.08em; }
|
||||
|
||||
/* Compact welcome overlay for mobile */
|
||||
.welcome-content {
|
||||
max-width: calc(100vw - 1.5rem);
|
||||
|
||||
Reference in New Issue
Block a user