From 7e5e99e0b16662a3365918ae8f24f5d5e331fa85 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Mon, 29 Aug 2022 21:34:11 +0000 Subject: [PATCH 1/3] Tweak styling --- public/css/app.css | 47 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index c5ea947..a9f66c6 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -38,6 +38,35 @@ details h2 { display: inline; } +details { + border-top: 1px solid black; + padding: 1em 0; +} + +details[open] summary { + margin-bottom: 1em; +} + +#checkinList li:first-child details { + border-top: none; +} + +.leaflet-popup { + max-width: 85vw; + max-height: 85vh; + min-width: 60vw; +} + +.leaflet-popup-content { + width: auto !important; +} + +.popup__image { + width: auto; + height: auto; + max-width: 70vw; +} + @media screen and (min-width: 1024px) { #routeContainer { grid-template-columns: 3fr 1fr; @@ -52,15 +81,13 @@ details h2 { #checkinList { grid-column-start: 2; } -} - - -.leaflet-popup-content { - width: auto !important; -} - -.popup__image { - max-width: 500px; - max-height: 400px; + + .leaflet-popup { + min-width: 350px; + } + + .popup__image { + max-width: 50vw; + } } From e58b650eb18f6e2533a474a94fc238ba4e0513e5 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Mon, 29 Aug 2022 21:34:48 +0000 Subject: [PATCH 2/3] Amend date formats, map zoom --- resources/views/tracker.blade.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/resources/views/tracker.blade.php b/resources/views/tracker.blade.php index ed9757d..3c5dbf4 100644 --- a/resources/views/tracker.blade.php +++ b/resources/views/tracker.blade.php @@ -20,10 +20,10 @@

Where in the World is Ben?

- Tracking started: {{ $trip->date_start }} | + Tracking started: {{ date('j M Y (G:H)', strtotime($trip->date_start)) }} | {{ ($trip->is_active) ? "Active" : "Ended" }} | {{ ($trip->is_tracking) ? "Currently tracking" : "Not currently tracking" }} - (Last update: {{ $trip->updated_at }}) + (Last update: {{ date('j M Y (G:H)', strtotime($trip->updated_at)) }})

@@ -34,7 +34,7 @@ @foreach($trip->checkins as $checkin)
  • -

    {{ $checkin->title ?? "[No title]" }}

    {{ $checkin->date }}
    +

    {{ $checkin->title ?? "[No title]" }}

    {{ date('j M Y (G:H)', strtotime($checkin->date)) }}
    {{ $checkin->note ?? "[No note]" }}
  • @@ -45,7 +45,7 @@