Skip to content

Commit f1c3a05

Browse files
authored
fix: prevent inherited text-align justify from distorting table cell text (#153)
1 parent 133698b commit f1c3a05

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

packages/chronicle/src/themes/default/Page.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126
table-layout: fixed;
127127
width: 100%;
128128
margin-bottom: var(--rs-space-5);
129+
/* block inherited justify (e.g. from <p align="justify"> in content) without overriding GFM column alignment */
130+
text-align: start;
129131
}
130132

131133
.content table td,

packages/chronicle/src/themes/paper/Page.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@
204204
table-layout: fixed;
205205
width: 100%;
206206
margin-bottom: var(--rs-space-5);
207+
/* block inherited justify (e.g. from <p align="justify"> in content) without overriding GFM column alignment */
208+
text-align: start;
207209
}
208210

209211
.content table td,

0 commit comments

Comments
 (0)