fix: consolidate media queries to be consistent with ranges

This commit is contained in:
Christian Andolf
2025-04-09 12:09:57 +02:00
parent e6aa177e6f
commit ee72f58c33
13 changed files with 13 additions and 13 deletions

View File

@@ -9,7 +9,7 @@
align-content: start;
}
@media screen and (min-width: 767px) {
@media screen and (min-width: 768px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}

View File

@@ -56,7 +56,7 @@
gap: var(--Spacing-x1);
}
@media screen and (min-width: 767px) {
@media screen and (min-width: 768px) {
.details {
padding: var(--Spacing-x6) 0 var(--Spacing-x4);
}

View File

@@ -33,7 +33,7 @@
text-decoration: none;
}
@media screen and (min-width: 767px) {
@media screen and (min-width: 768px) {
.secondaryNavigation {
margin-top: var(--Spacing-x4);
gap: 120px;

View File

@@ -11,7 +11,7 @@
max-width: var(--max-width-page);
}
@media screen and (min-width: 767px) {
@media screen and (min-width: 768px) {
.section {
padding: var(--Spacing-x9) 0;
}

View File

@@ -71,7 +71,7 @@
}
}
@media screen and (min-width: 768px) and (max-width: 1367px) {
@media screen and (min-width: 768px) and (max-width: 1366px) {
.container {
display: flex;
}

View File

@@ -31,7 +31,7 @@ const invalidBookingCodeMsg = "Invalid booking code"
export default function BookingCode() {
const intl = useIntl()
const checkIsTablet = useMediaQuery(
"(min-width: 768px) and (max-width: 1367px)"
"(min-width: 768px) and (max-width: 1366px)"
)
const checkIsDesktop = useMediaQuery("(min-width: 1367px)")
const [isTablet, setIsTablet] = useState(false)

View File

@@ -31,7 +31,7 @@
}
}
@media screen and (max-width: 1367px) {
@media screen and (max-width: 1366px) {
.inputContainer {
display: grid;
gap: var(--Spacing-x2);

View File

@@ -29,7 +29,7 @@ export default function HotelCardDialogListing({
const activeCardRef = useRef<HTMLDivElement | null>(null)
const observerRef = useRef<IntersectionObserver | null>(null)
const dialogRef = useRef<HTMLDivElement>(null)
const isMobile = useMediaQuery("(max-width: 768px)")
const isMobile = useMediaQuery("(max-width: 767px)")
const { activeHotelCard, setActiveHotelCard, setActiveHotelPin } =
useHotelsMapStore()

View File

@@ -33,7 +33,7 @@ div.selectedRoomPanel p.subtitle {
padding-bottom: var(--Spacing-x1);
}
@media screen and (max-width: 768px) {
@media screen and (max-width: 767px) {
.selectedRoomPanel {
gap: var(--Spacing-x1);
grid-template-areas: "image" "content";

View File

@@ -48,7 +48,7 @@
display: none;
}
@media (max-width: 768px) {
@media (max-width: 767px) {
.roomContainer {
padding: var(--Spacing-x2);
}

View File

@@ -199,7 +199,7 @@
.image {
object-fit: cover;
}
@media (min-width: 768px) and (max-width: 1367px) {
@media (min-width: 768px) and (max-width: 1366px) {
.fullViewContainer {
padding: var(--Spacing-x5);
}

View File

@@ -142,7 +142,7 @@
border-color: transparent var(--UI-Text-Active) transparent transparent;
}
@media screen and (max-width: 768px) {
@media screen and (max-width: 767px) {
.tooltipContainer[data-active="true"] .tooltip {
visibility: visible;
opacity: 1;