Skip to content

Commit 1bf9338

Browse files
committed
💅 style fixes
1 parent 8374d59 commit 1bf9338

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

pages/trips/index.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,15 @@ const Index: FC<{
192192
)}
193193
/>
194194

195-
<div className={`relative ${isShowingMap ? 'visible' : 'invisible'}`}>
195+
<div
196+
className={`relative md:visible ${
197+
isShowingMap ? 'visible' : 'invisible'
198+
}`}
199+
>
196200
{!!bounds && (
197201
<Button
198202
color="light"
199-
className="absolute z-10 flex items-center justify-center p-2 text-gray-800 bg-white rounded-full cursor-pointer animate-fadeIn top-5 gap-2 left-1/2"
203+
className="absolute z-10 flex items-center justify-center p-2 text-gray-800 bg-white rounded-full cursor-pointer translate--50p animate-fadeIn top-5 gap-2 left-1/2"
200204
onClick={() => searchMapWithinBounds()}
201205
size="sm"
202206
>

src/components/OverlayBubble.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const OverlayBubble: FC<{ trip: Trip; map: google.maps.Map }> = ({
5454
return (
5555
<>
5656
{isOpened ? (
57-
<div className="relative max-w-lg p-3 text-lg text-gray-900 bg-white rounded-lg -top-16 -left-12">
57+
<div className="relative max-w-lg p-3 text-black bg-white rounded-lg w-78">
5858
<button
5959
className="absolute top-0 right-0"
6060
onClick={handleBubbleClick}

styles/globals.css

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ nav a { text-decoration: none; }
9292

9393
}
9494

95+
.translate--50 {
96+
transform: translate(-50%, 0);
97+
}
98+
9599

96100
.dark input {
97101
color: #000;

0 commit comments

Comments
 (0)