Smaller bug fixes to compendium and minor feature for multiselect

This commit is contained in:
Litasa
2025-02-22 15:04:17 +00:00
committed by Vlyan
parent f49919b588
commit deaaf746d5
5 changed files with 62 additions and 13 deletions

File diff suppressed because one or more lines are too long

View File

@@ -726,6 +726,9 @@ button {
select {
background: rgba(255, 255, 245, 0.8); // same as the header-search in compendium popout
}
.input-element-tags {
max-height: 100px;
}
}
}
@@ -990,6 +993,21 @@ l5r5e-multi-select {
.input-element-tags {
grid-column-start: 1;
grid-column-end: span 3;
max-height: fit-content; // use value in px to limit the initial size of the tags list, but expandable when hovering over
overflow: hidden;
&.overflowing {
// Apply mask-image with linear gradient fade-out effect
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
// Transition for smooth height change and mask removal
transition: height 0.3s ease, mask-image 0.3s ease;
}
&.overflowing:hover {
max-height: fit-content;
mask-image: none;
}
}
select {
grid-row: 1;