Adjust QR panel sizing and collapse JSON subscription by default

This commit is contained in:
MHSanaei
2026-05-14 10:23:27 +02:00
parent 01a7dc807b
commit 2204c8231d
2 changed files with 9 additions and 3 deletions
@@ -98,7 +98,6 @@ watch(() => props.open, (next) => {
}
const open = [];
if (subLink.value) open.push('sub');
if (subJsonLink.value) open.push('sub-json');
activeKeys.value = open;
});
+9 -2
View File
@@ -11,7 +11,7 @@ const props = defineProps({
value: { type: String, required: true },
remark: { type: String, default: '' },
downloadName: { type: String, default: '' },
size: { type: Number, default: 240 },
size: { type: Number, default: 360 },
showQr: { type: Boolean, default: true },
});
@@ -82,8 +82,15 @@ function download() {
.qr-panel-canvas .qr-code {
cursor: pointer;
padding: 0 !important;
background: #fff;
border-radius: 4px;
line-height: 0;
}
.qr-panel-canvas .qr-code :deep(svg) {
display: block;
width: 100%;
height: auto;
max-width: 360px;
}
</style>