style: Improve overall app component paddings and margins and rollback vite to 5.1.6
This commit is contained in:
27 files changed
+357
-335
No files matched your search
@@ -10,6 +10,7 @@ import IconButton from "@mui/material/IconButton";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import "./cardScroller.module.scss";
|
||||
|
||||
export const CardScroller = ({
|
||||
children,
|
||||
displayCards,
|
||||
@@ -72,30 +73,26 @@ export const CardScroller = ({
|
||||
>
|
||||
<div className="card-scroller-heading-decoration" /> {title}
|
||||
</Typography>
|
||||
<ButtonGroup className="card-scroller-button-group">
|
||||
<IconButton
|
||||
className="card-scroller-button"
|
||||
onClick={() => carouselRef.previous()}
|
||||
>
|
||||
<div className="material-symbols-rounded">chevron_left</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
className="card-scroller-button"
|
||||
onClick={() => carouselRef.next()}
|
||||
>
|
||||
<div className="material-symbols-rounded">chevron_right</div>
|
||||
</IconButton>
|
||||
</ButtonGroup>
|
||||
</Box>
|
||||
<Carousel
|
||||
swipeable={false}
|
||||
draggable={false}
|
||||
swipeable
|
||||
draggable
|
||||
responsive={responsive}
|
||||
arrows={false}
|
||||
arrows
|
||||
ref={(el) => setCarouselRef(el)}
|
||||
className="card-scroller"
|
||||
customTransition="all .6s"
|
||||
transitionDuration={600}
|
||||
customRightArrow={
|
||||
<IconButton className="card-scroller-button right">
|
||||
<div className="material-symbols-rounded">chevron_right</div>
|
||||
</IconButton>
|
||||
}
|
||||
customLeftArrow={
|
||||
<IconButton className="card-scroller-button left">
|
||||
<div className="material-symbols-rounded">chevron_left</div>
|
||||
</IconButton>
|
||||
}
|
||||
>
|
||||
{children}
|
||||
</Carousel>
|
||||
|
||||
@@ -6,7 +6,23 @@
|
||||
display: flex;
|
||||
}
|
||||
&-button {
|
||||
aspect-ratio: 1;
|
||||
position: absolute !important;
|
||||
height: 100%;
|
||||
font-size: 1em !important;
|
||||
width: 3.2em;
|
||||
&.right{
|
||||
border-radius: $border-radius-default 0 0 $border-radius-default !important;
|
||||
right: -3.2em;
|
||||
}
|
||||
&.left{
|
||||
border-radius: 0 $border-radius-default $border-radius-default 0 !important;
|
||||
left: -3.2em;
|
||||
}
|
||||
.material-symbols-rounded{
|
||||
font-size: 3.2em;
|
||||
--wght: 200;
|
||||
--opsz: 48;
|
||||
}
|
||||
}
|
||||
&-header-container {
|
||||
display: flex;
|
||||
@@ -27,6 +43,9 @@
|
||||
background: white;
|
||||
}
|
||||
}
|
||||
&-container .MuiButtonGroup-outlined{
|
||||
gap: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.hidden-decoration {
|
||||
|
||||
Reference in new issue
Block a user