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;
}
.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;
}
.page-mj .inner .task-list-box .el-image {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -318,16 +318,28 @@
<li><a @click="upscale(3,scope.item)">U3</a></li>
<li><a @click="upscale(4,scope.item)">U4</a></li>
<li class="show-prompt">
<el-tooltip
class="box-item"
effect="light"
content="复制提示词"
placement="top"
<el-popover
placement="left"
title="提示词"
:width="240"
trigger="hover"
>
<el-icon class="copy-prompt" :data-clipboard-text="scope.item.prompt">
<DocumentCopy/>
</el-icon>
</el-tooltip>
<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">
<DocumentCopy/>
</el-icon>
</div>
</template>
</el-popover>
</li>
</ul>
</div>
@ -356,7 +368,7 @@
<script setup>
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 {httpGet, httpPost} from "@/utils/http";
import {ElMessage} from "element-plus";