Skip to content

Commit 214a5fc

Browse files
authored
fix dropdown menu long items causing horizontal scroll bar (#2396)
1 parent 630e2ed commit 214a5fc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Frontend/src/components/audit/ListFilterSelector.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,21 @@ onMounted(() => {
8282
}
8383
.item {
8484
font-size: 0.875rem;
85-
margin-left: 1.25rem;
85+
padding-left: 1.25rem;
8686
font-weight: 400;
8787
color: #262626;
88-
word-wrap: break-word;
8988
text-decoration: none;
9089
width: 100%;
90+
display: flex;
91+
overflow-wrap: anywhere;
9192
}
9293
.item-container {
9394
padding: 0.25rem 0;
9495
display: flex;
9596
place-items: center;
9697
cursor: pointer;
98+
max-width: 100%;
99+
width: max-content;
97100
}
98101
99102
.item-container:hover {
@@ -111,7 +114,7 @@ onMounted(() => {
111114
}
112115
113116
.selected {
114-
margin-left: 0.375rem;
117+
padding-left: 0.375rem;
115118
}
116119
117120
.dropdown .btn {

0 commit comments

Comments
 (0)