Skip to content

Commit 9cb60b4

Browse files
committed
fix: improve table width
1 parent d866ee0 commit 9cb60b4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@md-reader/theme",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Markdown Reader's theme.",
55
"main": "src/index.less",
66
"repository": {

src/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
font-weight: normal;
3131
text-rendering: optimizeLegibility;
3232
letter-spacing: 0.2px;
33-
word-break: break-word;
33+
word-wrap: break-word;
3434
overflow-x: hidden;
3535

3636
@import './theme.less';

src/theme.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ input[type='checkbox'] {
106106

107107
table {
108108
display: block;
109-
width: auto;
109+
width: max-content;
110110
max-width: 100%;
111111
border-collapse: collapse;
112112
margin: 1rem 0;

0 commit comments

Comments
 (0)