Skip to content

Commit 1a46acd

Browse files
committed
style: resize image when width changes
1 parent cb85fc2 commit 1a46acd

5 files changed

Lines changed: 30 additions & 2 deletions

File tree

.claude/settings.local.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(git *)",
5+
"Bash(pbcopy)"
6+
]
7+
}
8+
}

AGENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Text Guidelines
2+
3+
- Check the grammar of any text and adjust if necessary. Text must ALWAYS be written in ENGLISH.
4+
- Write the text using user-manual style language: clear, simple, and accessible, avoiding unnecessary technical jargon, while retaining all technical details explicitly documented in the source, without omitting or oversimplifying them.
5+
6+
# Versioning
7+
8+
Do not ask to commit, operations like `commit`, `add`, `push` are done manually by the user

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AGENTS.md

css/input.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,19 @@ td.copy-cmd.copied::after {
160160
}
161161

162162
img.wiki-img {
163-
max-width: 50%;
163+
max-width: 100%;
164164
border: 1px solid #94a3b8;
165165
border-radius: 4px;
166166
background-color: #fff;
167167
padding: 3px;
168168
}
169169

170+
@media (min-width: 768px) {
171+
img.wiki-img {
172+
max-width: 50%;
173+
}
174+
}
175+
170176
table.file-legend tr td {
171177
padding: 6px 10px;
172178
}

css/theme.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,12 +1584,17 @@ td.copy-cmd.copied::after {
15841584
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
15851585
}
15861586
img.wiki-img {
1587-
max-width: 50%;
1587+
max-width: 100%;
15881588
border: 1px solid #94a3b8;
15891589
border-radius: 4px;
15901590
background-color: #fff;
15911591
padding: 3px;
15921592
}
1593+
@media (min-width: 768px) {
1594+
img.wiki-img {
1595+
max-width: 50%;
1596+
}
1597+
}
15931598
table.file-legend tr td {
15941599
padding: 6px 10px;
15951600
}

0 commit comments

Comments
 (0)