fix food centering and error centering at very small widths

This commit is contained in:
CuriousMagpie
2024-11-12 15:46:55 -05:00
parent fcabf03978
commit 2bb7683cfd
2 changed files with 13 additions and 18 deletions
@@ -67,6 +67,12 @@
left: 3%;
right: 3%;
}
.message {
@media screen and (max-width: 450px) {
width: 100%;
}
}
}
.drawer-toggle-icon {
@@ -166,6 +172,7 @@
padding: 0;
white-space: nowrap;
position: relative;
width: 100%;
& .message {
display: flex;
@@ -34,12 +34,6 @@
<template
v-for="item in showItems"
>
<div
v-if="shouldAddVerticalLine(item)"
:key="item.key"
class="vertical-divider"
:style="dividerMargins"
></div>
<slot
name="item"
:item="item"
@@ -56,6 +50,10 @@
$buttonAreaWidth: 60;
.items > div {
margin: 0 12px
}
.slider-root {
position: relative;
}
@@ -95,9 +93,11 @@
&.left-button {
left: 0;
padding-left: 0px;
}
&.right-button {
padding-left:20px;
right: 0;
}
}
@@ -108,15 +108,6 @@
justify-content: center;
align-items: center;
padding-top: 10px;
margin-left: $buttonAreaWidth+ px;
margin-right: $buttonAreaWidth+ px;
}
.vertical-divider {
height: 92px;
width: 1px;
background: #34313a;
margin-bottom: 8px;
}
</style>
@@ -199,9 +190,6 @@ export default {
itemsPerPage () {
return Math.floor(this.currentWidth / (this.itemWidth + this.itemMargin));
},
shouldAddVerticalLine (item) {
return this.items[this.itemsPerPage() - 1] === item && this.pointer !== 5;
},
scrollButtonsVisible () {
return this.items.length > this.itemsPerPage();
},