fix: 自定义工具栏编辑界面 & 修改怪物手册字体大小

This commit is contained in:
unanmed 2024-04-19 22:17:48 +08:00
parent 2514095f41
commit faf7b9b654
2 changed files with 14 additions and 7 deletions

View File

@ -223,12 +223,12 @@ function enter() {
@media screen and (max-width: 600px) {
.rightbar {
width: 80%;
font-size: 85%;
font-size: 110%;
}
.leftbar {
width: 20%;
font-size: 80%;
font-size: 100%;
}
.enemy-container {

View File

@ -204,12 +204,15 @@ import { isMobile } from '@/plugin/use';
import Scroll from '@/components/scroll.vue';
import { deleteWith, tip } from '@/plugin/utils';
import { Modal } from 'ant-design-vue';
import { mainSetting } from '@/core/main/setting';
const props = defineProps<{
ui: GameUi;
num: number;
}>();
const scale = mainSetting.getValue('ui.toolbarScale', 100) / 100;
const list = CustomToolbar.list;
const selected = ref(0);
@ -518,9 +521,9 @@ onUnmounted(() => {
.tool-preview-item {
display: flex;
margin: 5px;
min-width: 50px;
height: 50px;
margin: v-bind('5 * scale + "px"');
min-width: v-bind('50 * scale + "px"');
height: v-bind('50 * scale + "px"');
background-color: #222;
border: 1.5px solid #ddd8;
justify-content: center;
@ -547,7 +550,7 @@ onUnmounted(() => {
#tool-left {
width: 100%;
height: 100%;
flex-basis: 40%;
max-height: 40vh;
display: flex;
flex-direction: row;
@ -565,7 +568,11 @@ onUnmounted(() => {
#tool-info {
width: 100%;
height: 100%;
flex-basis: 60%;
#tool-detail {
height: 100%;
}
}
.divider {