Browse Source

Adjust QR panel sizing and collapse JSON subscription by default

MHSanaei 22 hours ago
parent
commit
2204c8231d

+ 0 - 1
frontend/src/pages/inbounds/QrCodeModal.vue

@@ -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;
 });
 });
 
 

+ 9 - 2
frontend/src/pages/inbounds/QrPanel.vue

@@ -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>