update styles
This commit is contained in:
1 parent
f6b119f34f
commit
80abc61b80
17 files changed
+91
-24
No files matched your search
@@ -8,6 +8,7 @@
|
||||
<api-status :application="application" class="mb-4" />
|
||||
<task-full-list :applications="applications" @custom="onCustom" />
|
||||
<el-button type="primary" class="btn btn-generate" @click="onGenerateNew">
|
||||
<font-awesome-icon icon="fa-solid fa-chevron-left" class="icon icon-rotate mr-1" />
|
||||
{{ $t('midjourney.button.generateNew') }}
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -35,6 +36,7 @@ import {
|
||||
} from '@/operators';
|
||||
import TaskFullList from '@/components/midjourney/tasks/TaskFullList.vue';
|
||||
import { ROUTE_MIDJOURNEY_INDEX } from '@/router';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
|
||||
interface IData {
|
||||
channel: IMidjourneyChannel;
|
||||
@@ -57,13 +59,15 @@ export default defineComponent({
|
||||
PresetPanel,
|
||||
TaskFullList,
|
||||
ChannelSelector,
|
||||
ApiStatus
|
||||
ApiStatus,
|
||||
ElButton,
|
||||
FontAwesomeIcon
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
applications: [],
|
||||
channel: MIDJOURNEY_CHANNEL_FAST,
|
||||
preset: {},
|
||||
preset: this.$store.getters.midjourney.preset,
|
||||
prompt: '',
|
||||
elements: [],
|
||||
ignore: '',
|
||||
@@ -144,7 +148,7 @@ export default defineComponent({
|
||||
.presets {
|
||||
width: 260px;
|
||||
height: 100%;
|
||||
// background-color: var(--el-bg-color-page);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.main {
|
||||
flex: 1;
|
||||
@@ -161,8 +165,9 @@ export default defineComponent({
|
||||
|
||||
.btn.btn-generate {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
left: 30px;
|
||||
top: 30px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<elements-selector v-model="elements" :advanced="preset.advanced" class="mb-4" />
|
||||
<ignore-selector v-if="preset.advanced" v-model="ignore" class="mb-4" />
|
||||
<final-prompt v-if="finalPrompt" :model-value="finalPrompt" />
|
||||
<el-button type="primary" :disabled="!finalPrompt" @click="onGenerate">
|
||||
<el-button type="primary" class="btn btn-generate" :disabled="!finalPrompt" @click="onGenerate">
|
||||
{{ $t('midjourney.button.generate') }}
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -84,7 +84,7 @@ export default defineComponent({
|
||||
return {
|
||||
applications: [],
|
||||
channel: MIDJOURNEY_CHANNEL_FAST,
|
||||
preset: {},
|
||||
preset: this.$store.getters.midjourney.preset,
|
||||
prompt: '',
|
||||
elements: [],
|
||||
ignore: '',
|
||||
@@ -112,6 +112,9 @@ export default defineComponent({
|
||||
if (this.elements.length > 0) {
|
||||
content += ',' + this.elements.join(',');
|
||||
}
|
||||
if (this.preset.model) {
|
||||
content += ` --${this.preset.model}`;
|
||||
}
|
||||
if (this.preset.version) {
|
||||
content += ` --version ${this.preset.version}`;
|
||||
}
|
||||
@@ -200,7 +203,7 @@ export default defineComponent({
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -209,21 +212,26 @@ export default defineComponent({
|
||||
.presets {
|
||||
width: 260px;
|
||||
height: 100%;
|
||||
// background-color: var(--el-bg-color-page);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.main {
|
||||
flex: 1;
|
||||
padding: 15px;
|
||||
height: 100%;
|
||||
overflow-x: scroll;
|
||||
.title {
|
||||
font-size: 14px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.btn.btn-generate {
|
||||
width: 80px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
}
|
||||
.result {
|
||||
overflow-y: scroll;
|
||||
width: 400px;
|
||||
height: 100%;
|
||||
// background-color: var(--el-bg-color-page);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user