Skip to content

Commit 9b3daa9

Browse files
authored
chore: trix editor update (#311)
1 parent 7e5a575 commit 9b3daa9

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/unfold/contrib/forms/static/unfold/forms/css/trix.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ trix-toolbar .trix-button-group {
2424
border-radius: 3px; }
2525
trix-toolbar .trix-button-group:not(:first-child) {
2626
margin-left: 1.5vw; }
27-
@media (max-device-width: 768px) {
27+
@media (max-width: 768px) {
2828
trix-toolbar .trix-button-group:not(:first-child) {
2929
margin-left: 0; } }
3030

3131
trix-toolbar .trix-button-group-spacer {
3232
flex-grow: 1; }
33-
@media (max-device-width: 768px) {
33+
@media (max-width: 768px) {
3434
trix-toolbar .trix-button-group-spacer {
3535
display: none; } }
3636

@@ -57,7 +57,7 @@ trix-toolbar .trix-button {
5757
cursor: pointer; }
5858
trix-toolbar .trix-button:disabled {
5959
color: rgba(0, 0, 0, 0.125); }
60-
@media (max-device-width: 768px) {
60+
@media (max-width: 768px) {
6161
trix-toolbar .trix-button {
6262
letter-spacing: -0.01em;
6363
padding: 0 0.3em; } }
@@ -68,7 +68,7 @@ trix-toolbar .trix-button--icon {
6868
height: 1.6em;
6969
max-width: calc(0.8em + 4vw);
7070
text-indent: -9999px; }
71-
@media (max-device-width: 768px) {
71+
@media (max-width: 768px) {
7272
trix-toolbar .trix-button--icon {
7373
height: 2em;
7474
max-width: calc(0.8em + 3.5vw); } }
@@ -84,7 +84,7 @@ trix-toolbar .trix-button--icon {
8484
background-position: center;
8585
background-repeat: no-repeat;
8686
background-size: contain; }
87-
@media (max-device-width: 768px) {
87+
@media (max-width: 768px) {
8888
trix-toolbar .trix-button--icon::before {
8989
right: 6%;
9090
left: 6%; } }
@@ -334,7 +334,9 @@ trix-editor .attachment__metadata {
334334
white-space: nowrap; }
335335

336336
.trix-content {
337-
line-height: 1.5; }
337+
line-height: 1.5;
338+
overflow-wrap: break-word;
339+
word-break: break-word; }
338340
.trix-content * {
339341
box-sizing: border-box;
340342
margin: 0;

src/unfold/contrib/forms/static/unfold/forms/js/trix.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)