fix layout article.article-content

This commit is contained in:
2025-06-22 01:16:59 +09:00
parent 0fc920c844
commit 7eb653f569
3 changed files with 36 additions and 10 deletions

View File

@ -335,9 +335,7 @@ a.view-markdown:any-link {
margin: 0 auto; margin: 0 auto;
} }
article.article-content { /* article.article-content { padding: 10px; } */
padding: 10px;
}
.article-meta { .article-meta {
display: flex; display: flex;
@ -490,11 +488,39 @@ article.article-content {
line-height: 1.25; line-height: 1.25;
} }
article.article-content {
word-wrap: break-word;
max-width: 800px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
.article-body { .article-body {
color: #1f2328; color: #1f2328;
line-height: 1.6; line-height: 1.6;
padding-bottom: 200px;
font-size: 20px; font-size: 20px;
padding: 20px;
padding-bottom:200px;
}
.article-body img {
max-width: 100%;
height: auto;
display: block;
margin: 16px auto;
}
/* Apple Live Text overlay fix */
.article-body div#image-overlay {
max-width: 100% !important;
contain: layout;
}
/* Ensure images and their containers don't overflow */
.article-body p:has(img) {
overflow: hidden;
max-width: 100%;
} }
.article-body h1, .article-body h2, .article-body h3 { .article-body h1, .article-body h2, .article-body h3 {
@ -1009,6 +1035,7 @@ article.article-content {
/* Article content mobile optimization */ /* Article content mobile optimization */
.article-body { .article-body {
overflow-x: hidden; overflow-x: hidden;
padding: 10px;
padding-bottom: 50px; padding-bottom: 50px;
} }
@ -1074,8 +1101,3 @@ article.article-content {
padding: 0; padding: 0;
} }
} }
img {
width: 100%;
}

View File

@ -520,6 +520,8 @@ body {
line-height: 1.4; line-height: 1.4;
overflow-x: auto; overflow-x: auto;
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word;
word-break: break-word;
max-height: 300px; max-height: 300px;
overflow-y: auto; overflow-y: auto;
color: var(--text); color: var(--text);
@ -886,6 +888,9 @@ body {
padding: 8px !important; padding: 8px !important;
overflow-x: auto !important; overflow-x: auto !important;
-webkit-overflow-scrolling: touch !important; -webkit-overflow-scrolling: touch !important;
white-space: pre-wrap !important;
word-wrap: break-word !important;
word-break: break-word !important;
} }
.ask-ai-container { .ask-ai-container {

View File

@ -140,7 +140,6 @@ export default function RecordList({ title, records, apiConfig, showTitle = true
{expandedRecords.has(i) && ( {expandedRecords.has(i) && (
<div className="json-display"> <div className="json-display">
<div className="json-header">json data</div>
<pre className="json-content"> <pre className="json-content">
{JSON.stringify(record, null, 2)} {JSON.stringify(record, null, 2)}
</pre> </pre>