Skip to content

Commit

Permalink
chore: trix editor update (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Mar 11, 2024
1 parent 7e5a575 commit 9b3daa9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
14 changes: 8 additions & 6 deletions src/unfold/contrib/forms/static/unfold/forms/css/trix.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ trix-toolbar .trix-button-group {
border-radius: 3px; }
trix-toolbar .trix-button-group:not(:first-child) {
margin-left: 1.5vw; }
@media (max-device-width: 768px) {
@media (max-width: 768px) {
trix-toolbar .trix-button-group:not(:first-child) {
margin-left: 0; } }

trix-toolbar .trix-button-group-spacer {
flex-grow: 1; }
@media (max-device-width: 768px) {
@media (max-width: 768px) {
trix-toolbar .trix-button-group-spacer {
display: none; } }

Expand All @@ -57,7 +57,7 @@ trix-toolbar .trix-button {
cursor: pointer; }
trix-toolbar .trix-button:disabled {
color: rgba(0, 0, 0, 0.125); }
@media (max-device-width: 768px) {
@media (max-width: 768px) {
trix-toolbar .trix-button {
letter-spacing: -0.01em;
padding: 0 0.3em; } }
Expand All @@ -68,7 +68,7 @@ trix-toolbar .trix-button--icon {
height: 1.6em;
max-width: calc(0.8em + 4vw);
text-indent: -9999px; }
@media (max-device-width: 768px) {
@media (max-width: 768px) {
trix-toolbar .trix-button--icon {
height: 2em;
max-width: calc(0.8em + 3.5vw); } }
Expand All @@ -84,7 +84,7 @@ trix-toolbar .trix-button--icon {
background-position: center;
background-repeat: no-repeat;
background-size: contain; }
@media (max-device-width: 768px) {
@media (max-width: 768px) {
trix-toolbar .trix-button--icon::before {
right: 6%;
left: 6%; } }
Expand Down Expand Up @@ -334,7 +334,9 @@ trix-editor .attachment__metadata {
white-space: nowrap; }

.trix-content {
line-height: 1.5; }
line-height: 1.5;
overflow-wrap: break-word;
word-break: break-word; }
.trix-content * {
box-sizing: border-box;
margin: 0;
Expand Down
7 changes: 4 additions & 3 deletions src/unfold/contrib/forms/static/unfold/forms/js/trix.js

Large diffs are not rendered by default.

0 comments on commit 9b3daa9

Please sign in to comment.