Use custom flag language picker

This commit is contained in:
rajchales-monito
2026-07-30 09:52:16 +02:00
parent 67fb0e6fc4
commit a479a3c08d
3 changed files with 143 additions and 32 deletions
+77 -13
View File
@@ -247,22 +247,86 @@ label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
position: relative;
display: block;
}
.language-select select {
padding-left: 42px;
}
.selected-language-flag {
.native-language-select {
position: absolute;
z-index: 1;
left: 12px;
top: 50%;
width: 18px;
height: 13px;
transform: translateY(-50%);
line-height: 1;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.selected-language-flag .flag-image {
display: block;
.language-picker {
position: relative;
width: 100%;
height: 38px;
padding: 0 30px 0 11px;
display: flex;
align-items: center;
gap: 8px;
border: 1px solid var(--line);
border-radius: 7px;
background: white;
color: var(--ink);
font-size: 13px;
text-align: left;
}
.language-picker::after {
content: "";
position: absolute;
right: 11px;
top: 50%;
width: 7px;
height: 7px;
border-right: 1px solid var(--muted);
border-bottom: 1px solid var(--muted);
transform: translateY(-50%);
rotate: 45deg;
}
.language-picker span:last-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.language-menu {
position: absolute;
z-index: 20;
top: calc(100% + 5px);
left: 0;
right: 0;
max-height: 230px;
overflow: auto;
padding: 5px;
border: 1px solid var(--line);
border-radius: 8px;
background: white;
box-shadow: 0 14px 30px rgb(23 33 29 / 14%);
}
.language-option {
width: 100%;
min-height: 32px;
padding: 6px 8px;
display: flex;
align-items: center;
gap: 8px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--ink);
font-size: 13px;
text-align: left;
}
.language-option:hover,
.language-option.active {
background: #eaf6f1;
color: var(--brand);
}
.language-option span:last-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.language-picker .flag-image,
.language-option .flag-image {
flex: 0 0 auto;
}
.effect-settings .full-row {
display: grid;