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
feat(calendar): size the event's date and time fields to their content
Elian Doran181b1ef34347
diff --git a/apps/client/src/widgets/collections/calendar/EventField.css b/apps/client/src/widgets/collections/calendar/EventField.cssindex fa95ad27ae..8c60ad7631 100644--- a/apps/client/src/widgets/collections/calendar/EventField.css+++ b/apps/client/src/widgets/collections/calendar/EventField.css@@ -36,8 +36,11 @@align-items: center;gap: 6px;+ /* A native date or time input with `width: auto` is as wide as its fields and picker icon.+ It can still shrink when the row is narrower than that, as on a phone. */> input {- flex: 1 1 0;+ flex: 0 1 auto;+ width: auto;min-width: 0;padding: 0.25rem 0.5rem;}