Explorar o código

fix(cockpit): 图片查看操作提示移至屏幕底部

ChenJZ hai 4 horas
pai
achega
b7fd69e8da
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/modules/cockpit/components/ImagePreview.vue

+ 6 - 0
src/modules/cockpit/components/ImagePreview.vue

@@ -184,11 +184,17 @@ onBeforeUnmount(() => bindListeners(false))
     font-size: 12px;
 }
 .image-preview__hint {
+    position: absolute;
+    bottom: 22px;
+    left: 50%;
+    transform: translateX(-50%);
     margin: 0;
     text-align: center;
     color: rgba(255, 255, 255, 0.42);
     font-size: 11px;
     letter-spacing: 0.04em;
+    white-space: nowrap;
+    pointer-events: none;
 }
 .image-preview-enter-active,
 .image-preview-leave-active {