Skip to content

Commit 0e0c986

Browse files
remove unused code
1 parent f15cdac commit 0e0c986

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

src/FAB.vue

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
return '64px';
207207
}
208208
},
209-
topListPadding() {
209+
listPadding() {
210210
switch (this.iconSize) {
211211
case 'small':
212212
return '58px';
@@ -221,34 +221,18 @@
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
}
@@ -515,7 +499,6 @@
515499
align-items: center;
516500
border-radius: 100px;
517501
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.20), 0 4px 4px rgba(0, 0, 0, 0.15);
518-
z-index: 15;
519502
}
520503
521504
.fab-list li .material-icons {
@@ -530,7 +513,6 @@
530513
ul {
531514
list-style-type: none;
532515
padding: 0 !important;
533-
z-index: 10;
534516
}
535517
536518
.fab-wrapper .actions-container {

0 commit comments

Comments
 (0)