docs: adjust ui styles for mj image page

This commit is contained in:
RockYang 2023-09-20 14:33:15 +08:00
parent b25bb2cc53
commit 9cbe36d4c6
7 changed files with 30 additions and 22 deletions

View File

@ -218,7 +218,7 @@
background-color: #6d6f78; background-color: #6d6f78;
} }
.page-mj .inner .task-list-box .finish-job-list .job-item .opt .opt-line ul .show-prompt { .page-mj .inner .task-list-box .finish-job-list .job-item .opt .opt-line ul .show-prompt {
font-size: 18px; font-size: 20px;
cursor: pointer; cursor: pointer;
} }
.page-mj .inner .task-list-box .el-image { .page-mj .inner .task-list-box .el-image {

View File

@ -278,7 +278,7 @@
} }
.show-prompt { .show-prompt {
font-size 18px font-size 20px
cursor pointer cursor pointer
} }
} }

View File

@ -1,7 +1,3 @@
* {
margin: 0;
padding: 0;
}
html, html,
body, body,
#app, #app,

View File

@ -1,7 +1,7 @@
* { //* {
margin: 0; // margin: 0;
padding: 0; // padding: 0;
} //}
html, html,
body, body,

View File

@ -4,7 +4,7 @@ const routes = [
{ {
name: 'home', name: 'home',
path: '/', path: '/',
redirect: '/mj', redirect: '/chat',
meta: {title: '首页'}, meta: {title: '首页'},
component: () => import('@/views/Home.vue'), component: () => import('@/views/Home.vue'),
children: [ children: [

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="page-apps" :style="{ height: winHeight + 'px' }"> <div class="page-apps" :style="{ height: winHeight + 'px' }">
<div class="inner"> <div class="inner">
<h1>MidJourney 绘画中心</h1> <h1>应用中心</h1>
<h2>页面正在紧锣密鼓开发中敬请期待</h2> <h2>页面正在紧锣密鼓开发中敬请期待</h2>
</div> </div>
</div> </div>

View File

@ -318,16 +318,28 @@
<li><a @click="upscale(3,scope.item)">U3</a></li> <li><a @click="upscale(3,scope.item)">U3</a></li>
<li><a @click="upscale(4,scope.item)">U4</a></li> <li><a @click="upscale(4,scope.item)">U4</a></li>
<li class="show-prompt"> <li class="show-prompt">
<el-tooltip
class="box-item" <el-popover
effect="light" placement="left"
content="复制提示词" title="提示词"
placement="top" :width="240"
trigger="hover"
> >
<template #reference>
<el-icon>
<ChromeFilled/>
</el-icon>
</template>
<template #default>
<div class="mj-list-item-prompt">
<span>{{ scope.item.prompt }}</span>
<el-icon class="copy-prompt" :data-clipboard-text="scope.item.prompt"> <el-icon class="copy-prompt" :data-clipboard-text="scope.item.prompt">
<DocumentCopy/> <DocumentCopy/>
</el-icon> </el-icon>
</el-tooltip> </div>
</template>
</el-popover>
</li> </li>
</ul> </ul>
</div> </div>
@ -356,7 +368,7 @@
<script setup> <script setup>
import {onMounted, ref} from "vue" import {onMounted, ref} from "vue"
import {Comment, DeleteFilled, DocumentCopy, InfoFilled, Picture, Plus} from "@element-plus/icons-vue"; import {ChromeFilled, DeleteFilled, DocumentCopy, InfoFilled, Picture, Plus} from "@element-plus/icons-vue";
import Compressor from "compressorjs"; import Compressor from "compressorjs";
import {httpGet, httpPost} from "@/utils/http"; import {httpGet, httpPost} from "@/utils/http";
import {ElMessage} from "element-plus"; import {ElMessage} from "element-plus";