fix(styles): no horizontal scroll on phones (long words break, right sidebar wraps); docs: plugin tag page as tags/plugin/index.md

This commit is contained in:
saberzero1 committed 2026-11-08 02:23:15 +01:00
1 parent edfa7f1f1b
commit b7998bbd2d
3 files changed
+26

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@jackyzha0/quartz": patch
---
Pages no longer scroll sideways on phones: long words (a page title such as "ObsidianFlavoredMarkdown", long inline code) break where they don't fit, and the right sidebar's components (graph, backlinks) wrap below each other when they don't fit side by side.
File renamed without changes.
+21
View File
@@ -279,6 +279,10 @@ a {
height: unset;
width: 100%;
flex-direction: row;
// Wrap what does not fit side by side: on a phone the graph and backlinks are each about
// 180px at their narrowest, and a row that cannot wrap pushed the page wider than the
// screen (horizontal scroll).
flex-wrap: wrap;
padding: 0;
& > * {
flex: 1;
@@ -589,6 +593,23 @@ code {
background: var(--lightgray);
}
// Long words break only where they would not fit, so a phone does not scroll sideways: a page
// title such as "ObsidianFlavoredMarkdown", or `configuration.links.disableBrokenWikilinks` in a
// callout. Inline code takes `anywhere`, which also lets the box around it shrink (with
// `break-word` the callout widened to the identifier instead). Code blocks keep scrolling.
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
:not(pre) > code {
overflow-wrap: anywhere;
}
tbody,
li,
p {