Skip to content

Commit 0be3e6d

Browse files
committed
Fix UI clipping in modal select dropdowns by increasing select element height (#22)
This commit addresses a UI issue where dropdown options in modal select elements were getting clipped. To resolve this, a new CSS rule has been added for the .modal-form__select class within the .tasknotes-plugin scope. Changes include: • Adding extra padding using var(--tn-spacing-lg) on both sides for improved spacing. • Setting a minimum height of 44px to ensure sufficient vertical space for options. • Adjusting line-height to 1.6 for better readability and spacing. These adjustments enhance user interaction with select inputs within modal forms, ensuring that the dropdown options are fully visible and improving the overall usability of the modal interface.
1 parent 0645a8d commit 0be3e6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

styles/modal-bem.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@
7979
outline: none;
8080
}
8181

82+
/* Make select elements taller to prevent dropdown option clipping */
83+
.tasknotes-plugin .modal-form__select {
84+
padding: var(--tn-spacing-lg) var(--tn-spacing-lg);
85+
min-height: 44px;
86+
line-height: 1.6;
87+
}
88+
8289
.tasknotes-plugin .modal-form__input:hover,
8390
.tasknotes-plugin .modal-form__select:hover {
8491
border-color: var(--tn-border-color-hover);

0 commit comments

Comments
 (0)