@@ -162,38 +162,45 @@ function apply() {
162
162
@collapse =" collapsed = true"
163
163
@expand =" collapsed = false"
164
164
>
165
- <NLayout v-if =" adding" style =" height : 100% " >
166
- <NLayout position =" absolute" style =" bottom : 50px " >
165
+ <NLayout style =" height : 100% " >
166
+ <NLayout
167
+ position =" absolute"
168
+ :native-scrollbar =" false"
169
+ style =" bottom : 50px "
170
+ >
167
171
<NMenu
172
+ v-if =" adding"
168
173
v-model:value =" selectedLanguage"
169
174
:options =" filteredLanguageOptions"
170
175
/>
176
+ <NMenu
177
+ v-else
178
+ v-model:value =" selectedInputMethod"
179
+ :collapsed =" collapsed"
180
+ :collapsed-width =" 0"
181
+ :options =" options"
182
+ :render-label =" labelWithMinus"
183
+ />
171
184
</NLayout >
172
185
<NLayoutFooter position =" absolute" >
173
186
<NCheckbox
187
+ v-if =" adding"
174
188
v-model:checked =" onlyShowCurrentLanguage"
175
189
style =" height : 50px ; display : flex ; justify-content : center ; align-items : center "
176
190
>
177
- Only show current language
191
+ {{ collapsed ? '' : ' Only show current language' }}
178
192
</NCheckbox >
193
+ <div
194
+ v-else
195
+ style =" display : flex ; justify-content : end "
196
+ >
197
+ <PlusButton
198
+ style =" align-self : flex-end "
199
+ @click =" adding = true"
200
+ />
201
+ </div >
179
202
</NLayoutFooter >
180
203
</NLayout >
181
- <div
182
- v-else
183
- style =" display : flex ; flex-direction : column ; justify-content : space-between ; height : 100% "
184
- >
185
- <NMenu
186
- v-model:value =" selectedInputMethod"
187
- :collapsed =" collapsed"
188
- :collapsed-width =" 0"
189
- :options =" options"
190
- :render-label =" labelWithMinus"
191
- />
192
- <PlusButton
193
- style =" align-self : flex-end "
194
- @click =" adding = true"
195
- />
196
- </div >
197
204
</NLayoutSider >
198
205
<NLayout style =" min-height : 480px ; max-height : calc (100vh - 100px )" >
199
206
<template v-if =" adding " >
@@ -203,7 +210,12 @@ function apply() {
203
210
>
204
211
Select a language from the left list
205
212
</div >
206
- <NLayout v-else position =" absolute" style =" bottom : 50px " >
213
+ <NLayout
214
+ v-else
215
+ position =" absolute"
216
+ :native-scrollbar =" false"
217
+ style =" bottom : 50px "
218
+ >
207
219
<NCheckboxGroup
208
220
v-model:value =" imsToAdd"
209
221
style =" margin : 16px "
0 commit comments