File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change 206206 return ' 64px' ;
207207 }
208208 },
209- topListPadding () {
209+ listPadding () {
210210 switch (this .iconSize ) {
211211 case ' small' :
212212 return ' 58px' ;
221221 return ' 74px' ;
222222 }
223223 },
224- bottomListPadding () {
225- // mainIconSize + (paddingAmount) / 2 + 20
226- switch (this .iconSize ) {
227- case ' small' :
228- return ' 48px' ;
229- break ;
230- case ' medium' :
231- return ' 52px' ;
232- break ;
233- case ' large' :
234- return ' 58px' ;
235- break ;
236- default :
237- return ' 52px' ;
238- }
239- },
240224 listPos () {
241225 if (this .position === ' top-right' || this .position === ' top-left' ) {
242226 return {
243- top: this .allowRevertDirection ? ' unset' : this .topListPadding ,
244- bottom: this .allowRevertDirection ? this .topListPadding : ' unset' ,
227+ top: this .allowRevertDirection ? ' unset' : this .listPadding ,
228+ bottom: this .allowRevertDirection ? this .listPadding : ' unset' ,
245229 position: this .allowRevertDirection ? ' absolute' : ' absolute' ,
246230 width: this .listSize ,
247231 }
248232 }
249233 return {
250- bottom: this .allowRevertDirection ? ' unset' : this .topListPadding ,
251- top: this .allowRevertDirection ? this .topListPadding : ' unset' ,
234+ bottom: this .allowRevertDirection ? ' unset' : this .listPadding ,
235+ top: this .allowRevertDirection ? this .listPadding : ' unset' ,
252236 position: this .allowRevertDirection ? ' absolute' : ' absolute' ,
253237 width: this .listSize
254238 }
You can’t perform that action at this time.
0 commit comments