Skip to content

Commit

Permalink
修复移动端样式
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Dec 18, 2023
1 parent 71876a4 commit 06070e2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ import { usewatermarkStore } from '@/stores/watermark'
const watermarkStore = usewatermarkStore()
const { getwatermarkinfo } = watermarkStore
const watermarkData = ref("mower")
const watermarkData = ref('mower')
const config_store = useConfigStore()
const { load_config, load_shop } = config_store
Expand Down
4 changes: 0 additions & 4 deletions ui/src/pages/Log.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ import ReloadIcon from '@vicons/ionicons5/Reload'
</template>
<style scoped lang="scss">
.home-container {
width: calc(100% - 24px);
}
.log {
flex-grow: 1;
overflow: hidden;
Expand Down
18 changes: 13 additions & 5 deletions ui/src/pages/Plan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ async function import_plan() {
<template>
<trigger-dialog />
<task-dialog />
<div class="home-container plan-bar w-980 mx-auto mt-12">
<div class="home-container plan-bar w-980 mx-auto mt-12 mw-980">
<n-input type="textarea" :autosize="true" v-model:value="plan_file" />
<n-button @click="open_plan_file">...</n-button>
<n-button @click="import_plan">
Expand All @@ -207,7 +207,7 @@ async function import_plan() {
导出图片
</n-button>
</div>
<div class="home-container plan-bar w-980 mx-auto">
<div class="home-container plan-bar w-980 mx-auto mw-980">
<n-button
:disabled="sub_plan == 'main'"
@click="sub_plan = sub_plan == 0 ? 'main' : sub_plan - 1"
Expand Down Expand Up @@ -250,9 +250,9 @@ async function import_plan() {
删除此副表
</n-button>
</div>
<plan-editor ref="plan_editor" class="w-980 mx-auto" />
<plan-editor ref="plan_editor" class="w-980 mx-auto mw-980 px-12" />
<n-form
class="w-980 mx-auto mb-12"
class="w-980 mx-auto mb-12 px-12 mw-980"
:label-placement="mobile ? 'top' : 'left'"
:show-feedback="false"
label-width="160"
Expand Down Expand Up @@ -393,10 +393,18 @@ async function import_plan() {
margin-bottom: 12px;
}
.px-12 {
padding: 0 12px;
}
.mw-980 {
min-width: 980px;
}
.plan-bar {
flex-direction: row;
flex-grow: 0;
gap: 6px;
padding: 0;
padding: 0 12px;
}
</style>
4 changes: 4 additions & 0 deletions ui/src/pages/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ ul {
max-width: 600px;
margin-top: 10px;
}
.home-container {
width: calc(100% - 24px);
max-width: 600px;
}
}
/*双栏 大于1400的内容 */
@media (min-width: 1400px) {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/readme.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div style="width: 80%">
<div class="home-container">
<!-- <h2>更新日志</h2> -->
<h2>资源合集</h2>
<div>
Expand Down

0 comments on commit 06070e2

Please sign in to comment.