Refine styles for video models (#216)

This commit is contained in:
Germey authored and GitHub committed 2025-07-13 18:07:25 +08:00
1 parent 90824b0018
commit b3fc92eb4c
22 files changed
+79 -252

No files matched your search

+31 -20
View File
@@ -47,7 +47,9 @@ import {
ROUTE_DEEPSEEK_CONVERSATION_NEW,
ROUTE_DEEPSEEK_CONVERSATION,
ROUTE_GROK_CONVERSATION_NEW,
ROUTE_GROK_CONVERSATION
ROUTE_GROK_CONVERSATION,
ROUTE_KLING_INDEX,
ROUTE_KLING_HISTORY
} from '@/router/constants';
import LogoTiny from './LogoTiny.vue';
import UserCenter from '@/components/user/Center.vue';
@@ -140,7 +142,6 @@ export default defineComponent({
// name: ROUTE_QRART_INDEX
// },
// displayName: this.$t('common.nav.qrart'),
// icon: 'fa-solid fa-qrcode',
// routes: [ROUTE_QRART_INDEX, ROUTE_QRART_HISTORY]
// });
// }
@@ -167,16 +168,16 @@ export default defineComponent({
});
}
// Add pika's leftmost icon
if (this.$store?.state?.site?.features?.pika?.enabled) {
result.push({
route: {
name: ROUTE_PIKA_INDEX
},
displayName: this.$t('common.nav.pika'),
logo: 'https://cdn.acedata.cloud/i80tgn.png',
routes: [ROUTE_PIKA_INDEX, ROUTE_PIKA_HISTORY]
});
}
// if (this.$store?.state?.site?.features?.pika?.enabled) {
// result.push({
// route: {
// name: ROUTE_PIKA_INDEX
// },
// displayName: this.$t('common.nav.pika'),
// logo: 'https://cdn.acedata.cloud/i80tgn.png',
// routes: [ROUTE_PIKA_INDEX, ROUTE_PIKA_HISTORY]
// });
// }
// Add hailuo's leftmost icon
if (this.$store?.state?.site?.features?.hailuo?.enabled) {
result.push({
@@ -184,22 +185,32 @@ export default defineComponent({
name: ROUTE_HAILUO_INDEX
},
displayName: this.$t('common.nav.hailuo'),
icon: 'fa-solid fa-film',
logo: 'https://cdn.acedata.cloud/4tfwwz.png',
logo: 'https://cdn.acedata.cloud/0qg4gp.png',
routes: [ROUTE_HAILUO_INDEX, ROUTE_HAILUO_HISTORY]
});
}
// Add headshots's leftmost icon
if (this.$store?.state?.site?.features?.headshots?.enabled) {
// Add kling's leftmost icon
if (this.$store?.state?.site?.features?.kling?.enabled) {
result.push({
route: {
name: ROUTE_HEADSHOTS_INDEX
name: ROUTE_KLING_INDEX
},
displayName: this.$t('common.nav.headshots'),
icon: 'fa-solid fa-id-card',
routes: [ROUTE_HEADSHOTS_INDEX, ROUTE_HEADSHOTS_HISTORY]
displayName: this.$t('common.nav.kling'),
logo: 'https://cdn.acedata.cloud/qpbbbb.jpg',
routes: [ROUTE_KLING_INDEX, ROUTE_KLING_HISTORY]
});
}
// Add headshots's leftmost icon
// if (this.$store?.state?.site?.features?.headshots?.enabled) {
// result.push({
// route: {
// name: ROUTE_HEADSHOTS_INDEX
// },
// displayName: this.$t('common.nav.headshots'),
// icon: 'fa-solid fa-id-card',
// routes: [ROUTE_HEADSHOTS_INDEX, ROUTE_HEADSHOTS_HISTORY]
// });
// }
if (this.direction === 'row') {
result.push({
route: {
+1 -3
View File
@@ -29,9 +29,7 @@ import { ElButton } from 'element-plus';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import ModelSelector from './config/ModelSelector.vue';
import PromptInput from './config/PromptInput.vue';
// import RatioSelector from './config/RatioSelector.vue';
// import NumbersSelector from './config/NumbersSelector.vue';
// import QualitySelector from './config/QualitySelector.vue';
export default defineComponent({
name: 'PresetPanel',
components: {
+1
View File
@@ -57,6 +57,7 @@ export default defineComponent({
overflow: hidden;
border: 1px solid #ddd;
border-radius: 8px;
margin-bottom: 10px;
img {
width: 100%;
@@ -1,115 +0,0 @@
<template>
<div class="field">
<h2 class="title font-bold">{{ $t('pika.name.effect') }}</h2>
<el-select v-model="value" class="value" :placeholder="$t('pika.placeholder.select')" clearable>
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
<span class="float-left">{{ item.label }}</span>
<!-- <span class="float-right">{{ item.value }}</span> -->
</el-option>
</el-select>
</div>
</template>
<script>
import { defineComponent } from 'vue';
import { ElSelect, ElOption } from 'element-plus';
export default defineComponent({
name: 'EffectSelector',
components: {
ElSelect,
ElOption
},
data() {
return {};
},
computed: {
options() {
return [
{
value: 'Levitate',
label: this.$t('pika.style.effect1')
},
{
value: 'Decapitate',
label: this.$t('pika.style.effect2')
},
{
value: 'Eye-pop',
label: this.$t('pika.style.effect3')
},
{
value: 'Ta-da',
label: this.$t('pika.style.effect4')
},
{
value: 'Deflate',
label: this.$t('pika.style.effect5')
},
{
value: 'Crumble',
label: this.$t('pika.style.effect6')
},
{
value: 'Dissolve',
label: this.$t('pika.style.effect7')
},
{
value: 'Squish',
label: this.$t('pika.style.effect8')
},
{
value: 'Inflate',
label: this.$t('pika.style.effect9')
},
{
value: 'Melt',
label: this.$t('pika.style.effect10')
},
{
value: 'Cake-ify',
label: this.$t('pika.style.effect11')
},
{
value: 'Crush',
label: this.$t('pika.style.effect12')
},
{
value: 'Explode',
label: this.$t('pika.style.effect13')
}
];
},
value: {
get() {
return this.$store.state.pika?.config?.effect;
},
set(val) {
this.$store.commit('pika/setConfig', {
...this.$store.state.pika?.config,
effect: val
});
}
}
},
watch: {},
mounted() {}
});
</script>
<style lang="scss" scoped>
.field {
display: flex;
flex-direction: row;
align-items: center;
.title {
font-size: 14px;
margin: 0;
width: 30%;
}
.value {
flex: 1;
}
}
</style>
+2 -1
View File
@@ -80,8 +80,9 @@ export default defineComponent({
margin: 0;
width: 30%;
}
.value {
width: 80px;
width: 120px;
}
}
</style>
+5 -2
View File
@@ -57,7 +57,7 @@ export default defineComponent({
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between; // Add this line to move the icon to the right
justify-content: space-between;
position: relative;
.title {
font-size: 14px;
@@ -65,7 +65,10 @@ export default defineComponent({
}
}
.info {
margin-left: auto; // Ensure the icon stays on the right
margin-left: auto;
}
.prompt {
resize: none;
}
}
</style>
+3 -3
View File
@@ -105,9 +105,9 @@ export default defineComponent({
.items {
display: grid;
grid-template-columns: repeat(5, 48px); // 固定每行5列
gap: 8px; // 元素间距
justify-content: start; // 左对齐
grid-template-columns: repeat(5, 48px);
gap: 8px;
justify-content: start;
.item {
width: 48px;
+2 -1
View File
@@ -92,10 +92,11 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { ElImage, ElAlert, ElButton, ElTooltip } from 'element-plus';
import { IFluxTask, IFluxGenerateResponse, IFluxImage } from '@/models';
import { IFluxTask, IFluxImage } from '@/models';
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import ImageGallery from '../ImageGallery.vue';
export default defineComponent({
name: 'TaskPreview',
components: {
+2 -3
View File
@@ -1,7 +1,7 @@
<template>
<div v-for="(video, videoIndex) in videos" :key="videoIndex" class="preview">
<div class="left">
<el-image src="https://cdn.acedata.cloud/4tfwwz.png" class="avatar" />
<el-image src="https://cdn.acedata.cloud/0qg4gp.png" class="avatar" />
</div>
<div class="main">
<div class="bot">
@@ -208,12 +208,11 @@ $left-width: 70px;
.left {
width: $left-width;
.avatar {
background-color: rgb(85, 131, 186);
padding: 2px;
width: 50px;
height: 50px;
margin: 10px;
border-radius: 50%;
border: 1px solid var(--el-border-color);
}
}
@@ -6,7 +6,7 @@
<info-icon :content="$t('kling.description.cfgScale')" />
</div>
<div class="flex justify-end items-center">
<el-input-number v-model="value" size="small" controls-position="right" />
<el-input-number v-model="value" controls-position="right" />
</div>
</div>
<div class="w-full">
@@ -83,19 +83,18 @@ export default defineComponent({
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
justify-content: flex-start;
gap: 10px;
.item {
width: 48px;
height: 65px;
border: 2px solid var(--el-border-color);
border: 1px solid var(--el-border-color);
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
border-radius: 5px;
margin-right: 30px;
border-radius: 10px;
.preview {
margin-top: 8px;
@@ -107,7 +106,7 @@ export default defineComponent({
justify-content: center;
.rect {
border: 2px solid var(--el-border-color);
border: 1px solid var(--el-border-color);
width: 20px;
height: 20px;
border-radius: 2px;
+1 -3
View File
@@ -1,7 +1,7 @@
<template>
<div class="preview">
<div class="left">
<el-image src="https://cdn.acedata.cloud/gtt64b.png" class="avatar" />
<el-image src="https://cdn.acedata.cloud/qpbbbb.jpg" class="avatar" />
</div>
<div class="main">
<div class="bot">
@@ -198,8 +198,6 @@ $left-width: 70px;
.left {
width: $left-width;
.avatar {
background-color: rgb(34, 34, 34);
padding: 2px;
width: 50px;
height: 50px;
margin: 10px;