@@ -5,6 +5,7 @@ import api from "@/client/api";
55import { modInfo , updateModInfo } from "@/store/refs" ;
66import { useI18n } from 'vue-i18n' ;
77import ConfigEntry from '../../ConfigEntry' ;
8+ import { ENTRY_GROUP_PADDING , ENTRY_LABEL_CLASS } from '../../constants' ;
89
910export default defineComponent ( {
1011 props : {
@@ -38,7 +39,7 @@ export default defineComponent({
3839 load . value = false
3940 }
4041
41- return ( ) => < div class = "flex flex-col gap-2" >
42+ return ( ) => < div class = { [ "flex flex-col gap-2" , ENTRY_GROUP_PADDING ] } >
4243 { modInfo . value ?. isHidConflictExist ? < div class = "flex gap-2 items-center m-l-35" >
4344 < span class = "c-orange" > { t ( 'mod.adxHid.conflictDetected' ) } </ span >
4445 < Button variant = "secondary" onClick = { del } ing = { load . value } > { t ( 'mod.adxHid.oneClickDelete' ) } </ Button >
@@ -47,47 +48,41 @@ export default defineComponent({
4748 < span class = "c-green-6" > { t ( 'mod.adxHid.noConflict' ) } </ span >
4849 </ div > }
4950 < div class = "grid grid-cols-1 min-[500px]:grid-cols-2 gap-y-12px" >
50- < div >
51- < div class = "flex flex-col gap-2" >
52- < div class = "flex gap-2 items-start" >
53- < div class = "ml-1 text-sm w-10em shrink-0 h-42px flex items-center justify-end" > { t ( 'mod.adxHid.button1' ) } </ div >
54- < div class = "flex flex-col gap-2 w-full ws-pre-line" >
55- < Select v-model :value = { props . entryStates [ 'GameSystem.AdxHidInput.Button1' ] . value } options = { options } />
56- < div class = "text-sm op-80" > { t ( 'mod.adxHid.button1Desc' ) } </ div >
57- </ div >
51+ < div class = "flex flex-col gap-2" >
52+ < div class = "flex gap-2 items-start" >
53+ < div class = { ENTRY_LABEL_CLASS } > { t ( 'mod.adxHid.button1' ) } </ div >
54+ < div class = "flex flex-col gap-2 w-full ws-pre-line" >
55+ < Select v-model :value = { props . entryStates [ 'GameSystem.AdxHidInput.Button1' ] . value } options = { options } />
56+ < div class = "text-sm op-80" > { t ( 'mod.adxHid.button1Desc' ) } </ div >
5857 </ div >
59- < div class = "flex gap-2 items-start" >
60- < div class = "ml-1 text-sm w-10em shrink-0 h-42px flex items-center justify-end" > { t ( 'mod.adxHid.button2' ) } </ div >
61- < div class = "flex flex-col gap-2 w-full ws-pre-line" >
62- < Select v-model : value = { props . entryStates [ 'GameSystem.AdxHidInput.Button2' ] . value } options = { options } / >
63- < div class = "text-sm op-80" > { t ( 'mod.adxHid.button2Desc' ) } </ div >
64- </ div >
58+ </ div >
59+ < div class = "flex gap-2 items-start" >
60+ < div class = { ENTRY_LABEL_CLASS } > { t ( 'mod.adxHid.button2' ) } </ div >
61+ < div class = "flex flex-col gap-2 w-full ws-pre-line" >
62+ < Select v-model : value = { props . entryStates [ 'GameSystem.AdxHidInput.Button2' ] . value } options = { options } / >
63+ < div class = "text-sm op-80" > { t ( 'mod.adxHid.button2Desc' ) } < /div >
6564 </ div >
6665 </ div >
6766 </ div >
68- < div >
69- < div class = "flex flex-col gap-2" >
70- < div class = "flex gap-2 items-start" >
71- < div class = "ml-1 text-sm w-10em shrink-0 h-42px flex items-center justify-end" > { t ( 'mod.adxHid.button3' ) } </ div >
72- < div class = "flex flex-col gap-2 w-full ws-pre-line" >
73- < Select v-model :value = { props . entryStates [ 'GameSystem.AdxHidInput.Button3' ] . value } options = { options } />
74- < div class = "text-sm op-80" > { t ( 'mod.adxHid.button3Desc' ) } </ div >
75- </ div >
67+ < div class = "flex flex-col gap-2" >
68+ < div class = "flex gap-2 items-start" >
69+ < div class = { ENTRY_LABEL_CLASS } > { t ( 'mod.adxHid.button3' ) } </ div >
70+ < div class = "flex flex-col gap-2 w-full ws-pre-line" >
71+ < Select v-model :value = { props . entryStates [ 'GameSystem.AdxHidInput.Button3' ] . value } options = { options } />
72+ < div class = "text-sm op-80" > { t ( 'mod.adxHid.button3Desc' ) } </ div >
7673 </ div >
77- < div class = "flex gap-2 items-start" >
78- < div class = "ml-1 text-sm w-10em shrink-0 h-42px flex items-center justify-end" > { t ( 'mod.adxHid.button4' ) } </ div >
79- < div class = "flex flex-col gap-2 w-full ws-pre-line" >
80- < Select v-model : value = { props . entryStates [ 'GameSystem.AdxHidInput.Button4' ] . value } options = { options } / >
81- < div class = "text-sm op-80" > { t ( 'mod.adxHid.button4Desc' ) } </ div >
82- </ div >
74+ </ div >
75+ < div class = "flex gap-2 items-start" >
76+ < div class = { ENTRY_LABEL_CLASS } > { t ( 'mod.adxHid.button4' ) } </ div >
77+ < div class = "flex flex-col gap-2 w-full ws-pre-line" >
78+ < Select v-model : value = { props . entryStates [ 'GameSystem.AdxHidInput.Button4' ] . value } options = { options } / >
79+ < div class = "text-sm op-80" > { t ( 'mod.adxHid.button4Desc' ) } < /div >
8380 </ div >
8481 </ div >
8582 </ div >
8683 </ div >
87- < div class = "flex flex-col gap-2 p-l-3" >
88- { props . section . entries ?. filter ( it => ! knownPaths . includes ( it . path ! ) )
89- . map ( ( entry ) => < ConfigEntry key = { entry . path ! } entry = { entry } entryState = { props . entryStates [ entry . path ! ] } /> ) }
90- </ div >
84+ { props . section . entries ?. filter ( it => ! knownPaths . includes ( it . path ! ) )
85+ . map ( ( entry ) => < ConfigEntry key = { entry . path ! } entry = { entry } entryState = { props . entryStates [ entry . path ! ] } /> ) }
9186 </ div >
9287 } ,
9388} ) ;
0 commit comments