mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-31 23:29:27 +08:00
修改设置的名称显示
This commit is contained in:
parent
9f3a54be0f
commit
274d4af547
@ -394,18 +394,20 @@ mainSetting
|
|||||||
);
|
);
|
||||||
|
|
||||||
loading.once('coreInit', () => {
|
loading.once('coreInit', () => {
|
||||||
|
const get = core.getLocalStorage;
|
||||||
mainSetting.reset({
|
mainSetting.reset({
|
||||||
'screen.fullscreen': false,
|
'screen.fullscreen': false,
|
||||||
'screen.halo': !!core.getLocalStorage('showHalo', true),
|
'screen.halo': !!get('showHalo', true),
|
||||||
'screen.frag': !!core.getLocalStorage('frag', true),
|
'screen.frag': !!get('frag', true),
|
||||||
'screen.itemDetail': !!core.getLocalStorage('itemDetail', true),
|
'screen.itemDetail': !!get('itemDetail', true),
|
||||||
'screen.transition': !!core.getLocalStorage('transition', false),
|
'screen.transition': !!get('transition', false),
|
||||||
'screen.antiAlias': !!core.getLocalStorage('antiAlias', false),
|
'screen.antiAlias': !!get('antiAlias', false),
|
||||||
'screen.fontSize': core.getLocalStorage('fontSize', 16),
|
'screen.fontSize': get('fontSize', 16),
|
||||||
'screen.smoothView': !!core.getLocalStorage('smoothView', true),
|
'screen.smoothView': !!get('smoothView', true),
|
||||||
'action.fixed': !!core.getLocalStorage('fixed', true),
|
'screen.criticalGem': !!get('criticalGem', false),
|
||||||
'utils.betterLoad': !!core.getLocalStorage('betterLoad', true),
|
'action.fixed': !!get('fixed', true),
|
||||||
'utils.autoScale': !!core.getLocalStorage('autoScale', true)
|
'utils.betterLoad': !!get('betterLoad', true),
|
||||||
|
'utils.autoScale': !!get('autoScale', true)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -21,7 +21,9 @@
|
|||||||
:selected="item === info.item"
|
:selected="item === info.item"
|
||||||
@click="click(item.key, i, item)"
|
@click="click(item.key, i, item)"
|
||||||
>
|
>
|
||||||
<span>{{ item.name }}</span>
|
<span class="setting-name">{{
|
||||||
|
item.name
|
||||||
|
}}</span>
|
||||||
<span
|
<span
|
||||||
:selected="item === info.item"
|
:selected="item === info.item"
|
||||||
class="setting-cascade"
|
class="setting-cascade"
|
||||||
@ -259,6 +261,8 @@ onUnmounted(() => {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.setting-cascade {
|
.setting-cascade {
|
||||||
@ -273,9 +277,17 @@ onUnmounted(() => {
|
|||||||
color: cyan;
|
color: cyan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.setting-name {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-width: 70%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.setting-value {
|
.setting-value {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
color: rgb(242, 255, 101);
|
color: rgb(242, 255, 101);
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user