Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(options): cut a long choice short instead of carrying it off the card
Elian Doran9fc1458a12da
diff --git a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.cssindex ef5a67772c..ace1ba3bae 100644--- a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css+++ b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css@@ -19,12 +19,15 @@.option-row-input {flex-shrink: 0;+ min-width: 0;+ max-width: 100%;}.option-row-input > select,.option-row-input > .dropdown {width: auto;min-width: 150px;+ max-width: 100%;}.option-row-input > .dropdown button {@@ -32,6 +35,15 @@text-align: start;}+/* A choice too long to show is cut short rather than carried off the card. The arrow is a background+ image with padding reserved for it (forms.css), so it keeps its place at the end. */+.option-row-input > select,+.option-row-input > .dropdown > button {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.option-row-description {line-height: 1.3;margin-top: 0.25em;