🐛 Fix(custom): fix an issue the qr-code dropdown list is covered

This commit is contained in:
Kuingsmile
2026-01-12 11:33:21 +08:00
parent c03d23b8b3
commit 62a9e2bb7d
2 changed files with 9 additions and 3 deletions

View File

@@ -248,7 +248,13 @@ function openMenu() {
}
function handleCopyPicBedConfig() {
window.electron.clipboard.writeText(picBedConfigString.value)
let result
try {
result = JSON.stringify(JSON.parse(picBedConfigString.value), null, 2)
} catch (_e) {
result = picBedConfigString.value
}
window.electron.clipboard.writeText(result)
message.success(t('navigation.copySuccess'))
}

View File

@@ -323,7 +323,7 @@
}
.dialog-panel {
overflow: hidden;
overflow: visible;
border: 1px solid var(--color-border);
border-radius: 16px;
width: 100%;
@@ -396,7 +396,7 @@
top: 100%;
right: 0;
left: 0;
z-index: 10;
z-index: 1000;
overflow-y: auto;
margin-top: 4px;
border: 1px solid var(--color-border);