Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit ea8512bc2eeda30c4d983fb43bfcb33ea39093e9
Merge: 2bb7683 a36114e
Author: Kalista Payne <[email protected]>
Date:   Thu Nov 21 12:47:11 2024 -0600

    Merge branch 'develop' into ui-drawer-fix

commit 2bb7683
Author: CuriousMagpie <[email protected]>
Date:   Tue Nov 12 15:46:55 2024 -0500

    fix food centering and error centering at very small widths

commit fcabf03
Author: CuriousMagpie <[email protected]>
Date:   Fri Nov 1 14:44:16 2024 -0400

    grid size update

commit 47a531c
Author: CuriousMagpie <[email protected]>
Date:   Thu Oct 31 16:17:22 2024 -0400

    centered error messages on pet drawer

commit 14d2872
Author: CuriousMagpie <[email protected]>
Date:   Thu Oct 24 15:47:46 2024 -0400

    center no food/no saddle messages in drawer

commit 49d1d10
Merge: 6a805bd f1993db
Author: CuriousMagpie <[email protected]>
Date:   Thu Oct 24 14:04:16 2024 -0400

    Merge branch 'develop' into ui-drawer-fix

commit 6a805bd
Author: Alex <[email protected]>
Date:   Sat Nov 19 09:41:21 2022 -0500

    fix(ui): correct crowding in title of drawer component that causes drawer toggle icon to become obstructed
  • Loading branch information
SabreCat committed Nov 21, 2024
1 parent a36114e commit f6466b1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
20 changes: 17 additions & 3 deletions website/client/src/components/ui/drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@
left: calc((100% + 236px - 978px) / 2);
right: 0%;
}
@media screen and (max-width: 575px) {
max-width: none;
left: 3%;
right: 3%;
}
.message {
@media screen and (max-width: 450px) {
width: 100%;
}
}
}
.drawer-toggle-icon {
Expand Down Expand Up @@ -136,7 +148,7 @@
color: $white !important;
text-decoration: none !important;
border-bottom: 2px solid transparent;
padding: 0.5rem;
padding: 8px;
&-active, &:hover {
color: $white !important;
Expand All @@ -157,17 +169,19 @@
}
.drawer-slider {
padding: 12px 0 0 8px;
padding: 0;
white-space: nowrap;
position: relative;
width: 100%;
& .message {
display: flex;
align-items: center;
justify-content: center;
margin: auto;
top: calc(50% - 30px);
left: 24px;
left: 0;
right: 0;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion website/client/src/components/ui/drawerHeaderTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
.header-tabs {
display: grid;
grid-template-columns: 1fr auto 1fr;
grid-template-columns: max-content;
}
// MS Edge
Expand Down
24 changes: 6 additions & 18 deletions website/client/src/components/ui/drawerSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -56,6 +50,10 @@
$buttonAreaWidth: 60;
.items > div {
margin: 0 12px
}
.slider-root {
position: relative;
}
Expand Down Expand Up @@ -95,9 +93,11 @@
&.left-button {
left: 0;
padding-left: 0px;
}
&.right-button {
padding-left:20px;
right: 0;
}
}
Expand All @@ -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>
Expand Down Expand Up @@ -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();
},
Expand Down

0 comments on commit f6466b1

Please sign in to comment.