From 92281fcbb72c2d3c2d523dfc43703ac023332c9b Mon Sep 17 00:00:00 2001 From: RockYang Date: Wed, 6 Mar 2024 17:31:54 +0800 Subject: [PATCH] feat: Mj and sd jobs data loading in pages --- web/src/assets/css/image-mj.css | 6 +-- web/src/assets/css/image-sd.css | 6 +-- web/src/assets/css/task-list.styl | 6 ++- web/src/views/ImageMj.vue | 65 ++++++++++++++++++++----------- web/src/views/ImageSd.vue | 54 +++++++++++++++++-------- 5 files changed, 90 insertions(+), 47 deletions(-) diff --git a/web/src/assets/css/image-mj.css b/web/src/assets/css/image-mj.css index 4bc3c53..e7f6c92 100644 --- a/web/src/assets/css/image-mj.css +++ b/web/src/assets/css/image-mj.css @@ -386,12 +386,12 @@ font-size: 50px; margin-bottom: 10px; } -.page-mj .inner .task-list-box .task-list-inner .job-list-box .el-image.upscale { - max-height: 310px; -} .page-mj .inner .task-list-box .task-list-inner .job-list-box .el-image.upscale img { height: 310px; } +.page-mj .inner .task-list-box .task-list-inner .job-list-box .el-image.upscale .image-slot { + height: 310px; +} .page-mj .inner .task-list-box .task-list-inner .job-list-box .el-image.upscale .el-image-viewer__wrapper img { width: auto; height: auto; diff --git a/web/src/assets/css/image-sd.css b/web/src/assets/css/image-sd.css index 3504fcd..4528c83 100644 --- a/web/src/assets/css/image-sd.css +++ b/web/src/assets/css/image-sd.css @@ -271,12 +271,12 @@ font-size: 50px; margin-bottom: 10px; } -.page-sd .inner .task-list-box .task-list-inner .job-list-box .el-image.upscale { - max-height: 310px; -} .page-sd .inner .task-list-box .task-list-inner .job-list-box .el-image.upscale img { height: 310px; } +.page-sd .inner .task-list-box .task-list-inner .job-list-box .el-image.upscale .image-slot { + height: 310px; +} .page-sd .inner .task-list-box .task-list-inner .job-list-box .el-image.upscale .el-image-viewer__wrapper img { width: auto; height: auto; diff --git a/web/src/assets/css/task-list.styl b/web/src/assets/css/task-list.styl index 38b5220..af045ff 100644 --- a/web/src/assets/css/task-list.styl +++ b/web/src/assets/css/task-list.styl @@ -275,12 +275,14 @@ } .el-image.upscale { - max-height 310px - img { height 310px } + .image-slot { + height 310px + } + .el-image-viewer__wrapper { img { width auto diff --git a/web/src/views/ImageMj.vue b/web/src/views/ImageMj.vue index d582af1..5ae1289 100644 --- a/web/src/views/ImageMj.vue +++ b/web/src/views/ImageMj.vue @@ -163,7 +163,7 @@ -
+
@@ -240,7 +240,7 @@
- + @@ -254,7 +254,7 @@ content="使用 AI 翻译并重写提示词,
增加更多细节,风格等描述" placement="top-end" > - + @@ -281,7 +281,7 @@
- + @@ -391,7 +391,7 @@

创作记录

-
+