Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: limit inline attachment width

thecodrrc15b591655c4
diff --git a/apps/web/src/components/editor/plugins/attachmentshandler.css b/apps/web/src/components/editor/plugins/attachmentshandler.css
index a27394386..c8b1797db 100644
--- a/apps/web/src/components/editor/plugins/attachmentshandler.css
+++ b/apps/web/src/components/editor/plugins/attachmentshandler.css
@@ -11,6 +11,13 @@ span.attachment {
border: 1px solid var(--border);
font-size: 0.85rem;
cursor: pointer !important;
+ max-width: 250px;
+}
+
+span.attachment .filename {
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
}
span.attachment::before {