Feat/SW-1549 map improvements * fix: imported new icon * refactor: rename component and set map handling to 'greedy' * fix: show cards for 3s after hover * refactor: update styles and added HotelPin component * fix: change from close to back icon * refactor: update to only use 1 state value for active pin and card * fix: add click handler when dialog is opened * fix: performance fixes for the dialog carousel * fix: added border * fix: clear timeout on mouseenter * fix: changed to absolute import * fix: moved hover state into the store * fix: renamed store actions Approved-by: Michael Zetterberg
30 lines
645 B
CSS
30 lines
645 B
CSS
.hotelCardDialogListing {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: var(--Spacing-x1);
|
|
align-items: flex-end;
|
|
overflow-x: scroll;
|
|
|
|
scroll-snap-type: x proximity;
|
|
-webkit-overflow-scrolling: touch; /* Needed to work on iOS Safari */
|
|
padding-inline: var(--Spacing-x2);
|
|
scroll-padding-inline: var(--Spacing-x2);
|
|
overscroll-behavior-inline: contain;
|
|
|
|
scroll-behavior: smooth;
|
|
will-change: transform;
|
|
backface-visibility: hidden;
|
|
transform: translateZ(0);
|
|
}
|
|
|
|
.hotelCardDialogListing > div {
|
|
height: 100%;
|
|
scroll-snap-align: center;
|
|
}
|
|
|
|
.hotelCardDialogListing dialog {
|
|
position: relative;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|