Skip to content

Commit

Permalink
fix(search/map): Fix business hours styling in Map view (#99)
Browse files Browse the repository at this point in the history
- Apply correct styles for `Open now` and `Closes` text in review cards while in Map view
- Ensure consistent styling between List and Map views

Changes summary:
- Fixed inconsistent business hours display in map view
  • Loading branch information
itsmartashub committed Jan 12, 2025
1 parent dd7fbf0 commit 8b423b6
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/sass/elements/_right--main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,6 @@ main [role='presentation'] {
--main-surface-tertiary: hsla(var(--accent-hsl) / .12) !important;
}

/* "Closed" text in review cards */
.text-red-600,
.text-green-600 {
font-weight: bold;
}

/* Line between review cards in mobile view */
.my-4.border-t.border-token-border-xlight {
display: none;
Expand All @@ -451,9 +445,17 @@ main [role='presentation'] {
}

/* Image placeholder for non-image for review cards */
.text-left:has(a[href*="google.com/maps"]) .h-full.w-full.bg-gray-100 {
background-color: transparent !important;
background-image: linear-gradient(135deg, hsla(var(--accent-hsl) / 0.05), hsla(var(--accent-hsl) / 0.3)) !important;
.text-left:has(a[href*="google.com/maps"]) {
.h-full.w-full.bg-gray-100 {
background-color: transparent !important;
background-image: linear-gradient(135deg, hsla(var(--accent-hsl) / 0.05), hsla(var(--accent-hsl) / 0.3)) !important;
}

/* "Closed" text in review cards */
.text-red-600,
.text-green-600 {
font-weight: bold;
}
}
}

Expand Down

0 comments on commit 8b423b6

Please sign in to comment.