Skip to content

Commit 97bcf17

Browse files
committedOct 16, 2020
Fix autocomplete popup size and shadow
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 4c91063 commit 97bcf17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/components/RichContenteditable/RichContenteditable.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -491,13 +491,14 @@ export default {
491491
min-width: 250px;
492492
max-width: 300px;
493493
// Show maximum 4 entries and a half to show scroll
494-
max-height: $clickable-area * 4.5;
494+
// 44px + 10px padding
495+
max-height: ($clickable-area + 20px) * 4.5;
495496
// Space it out a bit from the text
496497
margin: 5px 0;
497498
color: var(--color-main-text);
498499
border-radius: var(--border-radius);
499500
background: var(--color-main-background);
500-
box-shadow: 0 0 5px var(--color-box-shadow);
501+
box-shadow: 0 1px 5px var(--color-box-shadow);
501502
}
502503

503504
</style>

0 commit comments

Comments
 (0)
Please sign in to comment.