mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-18 12:05:53 +00:00
Adjust QR panel sizing and collapse JSON subscription by default
This commit is contained in:
parent
01a7dc807b
commit
2204c8231d
2 changed files with 9 additions and 3 deletions
|
|
@ -98,7 +98,6 @@ watch(() => props.open, (next) => {
|
||||||
}
|
}
|
||||||
const open = [];
|
const open = [];
|
||||||
if (subLink.value) open.push('sub');
|
if (subLink.value) open.push('sub');
|
||||||
if (subJsonLink.value) open.push('sub-json');
|
|
||||||
activeKeys.value = open;
|
activeKeys.value = open;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ const props = defineProps({
|
||||||
value: { type: String, required: true },
|
value: { type: String, required: true },
|
||||||
remark: { type: String, default: '' },
|
remark: { type: String, default: '' },
|
||||||
downloadName: { type: String, default: '' },
|
downloadName: { type: String, default: '' },
|
||||||
size: { type: Number, default: 240 },
|
size: { type: Number, default: 360 },
|
||||||
showQr: { type: Boolean, default: true },
|
showQr: { type: Boolean, default: true },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -82,8 +82,15 @@ function download() {
|
||||||
|
|
||||||
.qr-panel-canvas .qr-code {
|
.qr-panel-canvas .qr-code {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0 !important;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
line-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qr-panel-canvas .qr-code :deep(svg) {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
max-width: 360px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue