From 2d1fc4273a76fd154cb2ea4cdb465b0554c7f47e Mon Sep 17 00:00:00 2001 From: putyy Date: Fri, 25 Jul 2025 15:37:10 +0800 Subject: [PATCH] feat: picture display optimize --- frontend/src/views/index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/index.vue b/frontend/src/views/index.vue index 7e82b88..77175c3 100644 --- a/frontend/src/views/index.vue +++ b/frontend/src/views/index.vue @@ -177,7 +177,7 @@ const columns = ref([ { title: computed(() => t("index.domain")), key: "Domain", - width: 80, + width: 90, }, { title: computed(() => t("index.type")), @@ -200,12 +200,14 @@ const columns = ref([ width: 80, render: (row: appType.MediaInfo) => { if (row.Classify === "image") { - return h(NImage, { - maxWidth: "80px", + return h("div", { + style: "width: 100%;max-height:80px;overflow:hidden;" + }, h(NImage, { + objectFit: "contain", lazy: true, "render-toolbar": renderToolbar, src: row.Url - }) + })) } return [ h(