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

+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: {