Fix view styling

This commit is contained in:
Ben Goldsworthy 2022-10-19 21:14:10 +00:00
parent 9a000fb08e
commit 27ace62423
2 changed files with 26 additions and 15 deletions

View file

@ -44,10 +44,13 @@ details h2 {
.other-links { .other-links {
display: block; display: block;
margin: auto; margin: auto;
overflow: auto;
} }
.other-links ul { .other-links ul {
list-style: none; list-style: none;
margin: 0 auto;
width: fit-content;
} }
.other-links li { .other-links li {
@ -58,6 +61,7 @@ details h2 {
.trip-meta { .trip-meta {
display: block; display: block;
width: 100%; width: 100%;
text-align: center;
} }
.main--list { .main--list {
@ -74,14 +78,19 @@ details h2 {
} }
} }
#map { #mapContainer {
height: 400px;
grid-column-start: 1; grid-column-start: 1;
grid-column-end: 3; grid-column-end: 3;
@media screen and (min-width: 1024px) {
grid-column-end: 2;
}
}
#map {
height: 400px;
@media screen and (min-width: 1024px) { @media screen and (min-width: 1024px) {
height: auto; height: auto;
min-height: 800px; min-height: 800px;
grid-column-end: 2;
} }
} }

View file

@ -37,11 +37,13 @@
</header> </header>
<main id="routeContainer"> <main id="routeContainer">
<section id="mapContainer">
<div id="map"></div> <div id="map"></div>
</section>
<section id="checkinList"> <section id="checkinList">
<ol start="{{ count($trip->checkins) }}" reversed> <ol start="{{ count($trip->checkins) }}" reversed>
@foreach(array_slice(array_reverse($trip->checkins), 0, 15) as $checkin) @foreach(array_slice(array_reverse($trip->checkins), 0, 15) as $checkin)
<li n> <li>
<details id="{{ $checkin->id }}" ontoggle="toggleCheckin(this.open, this.id)"> <details id="{{ $checkin->id }}" ontoggle="toggleCheckin(this.open, this.id)">
<summary><h2>{{ $checkin->title ?? "[No title]" }}</h2> <span>{{ date('j M Y (G:H)', strtotime($checkin->date)) }}</span></summary> <summary><h2>{{ $checkin->title ?? "[No title]" }}</h2> <span>{{ date('j M Y (G:H)', strtotime($checkin->date)) }}</span></summary>
{{ $checkin->note ?? "[No note]" }} {{ $checkin->note ?? "[No note]" }}