Skip to content

Commit

Permalink
fix: responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 committed Aug 2, 2024
1 parent e67f24e commit b1b028b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions resources/sass/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ dl.copyable{
padding-right: $grid-gutter-width;
}

.container-event{
width: 1000px;

@include media-breakpoint-down(md) {
width: 100%;
}
}

// Custom extras
.front-cover {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion resources/views/events/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@section('title', $event->title)
@section('content')

<div style="width: 1000px;">
<div class="container-event">

@if($event->image)
<img src="{{ asset('storage/banners/' . $event->image) }}" alt="{{ $event->title }}" class="img-fluid">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<ul class="list-group list-group-flush">
@if ($upcomingEvents->isNotEmpty())
@foreach($upcomingEvents as $event)
<li class="list-group-item d-flex justify-content-between align-items-center">
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<img src={{ asset('storage/banners/' . $event->image) }} height="100">
<span>{{ $event->title }}</span>
<span class="d-none d-md-block">{{ $event->title }}</span>
<div>
<a href="{{ route('events.show', $event->id) }}" class="btn btn-info btn-sm">View Event</a>
<a href="{{ route('calendar', $event->calendar) }}" class="btn btn-secondary btn-sm">View Calendar</a>
Expand Down

0 comments on commit b1b028b

Please sign in to comment.