Skip to content

Commit 66f4242

Browse files
authored
Merge pull request #151 from dtinit/artilce_page
Added word wrap for all devices sizes
2 parents 5dee1dc + b54751d commit 66f4242

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

static/css/article.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585

8686
.source,
8787
.destination {
88+
display: flex;
89+
flex-direction: row;
90+
flex-wrap: wrap;
8891
align-items: flex-start;
8992
gap: 8px;
9093
padding: 10px 16px;
@@ -95,15 +98,17 @@
9598
color: #4a5568;
9699
width: 100%;
97100
min-height: 44px;
101+
word-break: break-word;
102+
overflow-wrap: anywhere;
103+
box-sizing: border-box;
98104
}
99105

100106
.source-text,
101107
.destination-text {
102-
word-wrap: break-word;
103-
overflow-wrap: break-word;
104-
hyphens: auto;
108+
flex: 1 1 100%;
105109
line-height: 1.5;
106-
flex: 1;
110+
word-break: break-word;
111+
overflow-wrap: anywhere;
107112
}
108113

109114
.source::before {

0 commit comments

Comments
 (0)