fix food centering and error centering at very small widths
This commit is contained in:
@@ -67,6 +67,12 @@
|
|||||||
left: 3%;
|
left: 3%;
|
||||||
right: 3%;
|
right: 3%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.message {
|
||||||
|
@media screen and (max-width: 450px) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-toggle-icon {
|
.drawer-toggle-icon {
|
||||||
@@ -166,6 +172,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
& .message {
|
& .message {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -34,12 +34,6 @@
|
|||||||
<template
|
<template
|
||||||
v-for="item in showItems"
|
v-for="item in showItems"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
v-if="shouldAddVerticalLine(item)"
|
|
||||||
:key="item.key"
|
|
||||||
class="vertical-divider"
|
|
||||||
:style="dividerMargins"
|
|
||||||
></div>
|
|
||||||
<slot
|
<slot
|
||||||
name="item"
|
name="item"
|
||||||
:item="item"
|
:item="item"
|
||||||
@@ -56,6 +50,10 @@
|
|||||||
|
|
||||||
$buttonAreaWidth: 60;
|
$buttonAreaWidth: 60;
|
||||||
|
|
||||||
|
.items > div {
|
||||||
|
margin: 0 12px
|
||||||
|
}
|
||||||
|
|
||||||
.slider-root {
|
.slider-root {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
@@ -95,9 +93,11 @@
|
|||||||
|
|
||||||
&.left-button {
|
&.left-button {
|
||||||
left: 0;
|
left: 0;
|
||||||
|
padding-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.right-button {
|
&.right-button {
|
||||||
|
padding-left:20px;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -108,15 +108,6 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
margin-left: $buttonAreaWidth+ px;
|
|
||||||
margin-right: $buttonAreaWidth+ px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-divider {
|
|
||||||
height: 92px;
|
|
||||||
width: 1px;
|
|
||||||
background: #34313a;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -199,9 +190,6 @@ export default {
|
|||||||
itemsPerPage () {
|
itemsPerPage () {
|
||||||
return Math.floor(this.currentWidth / (this.itemWidth + this.itemMargin));
|
return Math.floor(this.currentWidth / (this.itemWidth + this.itemMargin));
|
||||||
},
|
},
|
||||||
shouldAddVerticalLine (item) {
|
|
||||||
return this.items[this.itemsPerPage() - 1] === item && this.pointer !== 5;
|
|
||||||
},
|
|
||||||
scrollButtonsVisible () {
|
scrollButtonsVisible () {
|
||||||
return this.items.length > this.itemsPerPage();
|
return this.items.length > this.itemsPerPage();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user