モバイルでソースコードの行数部分の横幅を最適化 #25
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
モバイルデバイスでコードブロックの行数表示部分が横幅を取りすぎて、実際のコード内容の表示領域が狭くなっていた問題を修正しました。
変更内容
padding: 0rem .5rem .5rem .5rem(左右0.5rem)padding: 0rem .25rem .5rem .25rem(左右0.25rem)行の高さ (
line-height: 1.5) は要求通り変更せず、横幅のみ最適化しています。修正ファイル
assets/template.html- 各記事HTMLファイルに埋め込まれるインラインCSSにモバイル向けメディアクエリを追加assets/modern-light.css- メインCSSファイルにも一貫性のためのモバイル最適化を追加テスト結果
デスクトップとモバイルの両方で正常に動作することを確認済み:
デスクトップ vs モバイル比較
モバイルビュー (375px幅)
実際の記事でのモバイル表示
モバイルデバイスでのコード可読性が大幅に向上し、行数表示は適度にコンパクトになりながらも十分に視認可能です。
Fixes #[issue_number]
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dog.ceopython3 blog_builder/generate.py --help(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.