Skip to content

Commit 6f7fd74

Browse files
committed
fix(files): contain wrapped inline code in WebKit
1 parent e142843 commit 6f7fd74

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.css‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@
262262
padding: 0.125rem 0.375rem;
263263
}
264264

265+
/* WebKit can leave inline padding outside the line when only overflow-wrap breaks a token. */
266+
.rich-markdown-prose :not(pre) > code {
267+
word-break: break-all;
268+
}
269+
265270
/* del/s are the one mark that both needs its own explicit default color (dimmer than the prose
266271
* default, unlike strong/em/code above) AND must still yield it to a link's blue — an inherited
267272
* value never beats an element's own explicit rule regardless of the ancestor selector's

0 commit comments

Comments
 (0)