Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resources/views/calendar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</div>

<div class="flex">
<div class="overflow-x-auto w-full">
<div class="inline-block min-w-full overflow-hidden">
<div class="w-full">
<div class="w-full overflow-hidden">

<div class="w-full flex flex-row">
@foreach($monthGrid->first() as $day)
Expand Down
6 changes: 3 additions & 3 deletions resources/views/day-of-week.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="flex-1 h-12 border -mt-px -ml-px flex items-center justify-center bg-indigo-100 text-gray-900"
style="min-width: 10rem;">
<div class="flex-1 h-12 border -mt-px -ml-px flex items-center justify-center bg-indigo-100 text-gray-900">

<p class="text-sm">
{{ $day->format('l') }}
<span class="hidden lg:inline">{{ $day->format('l') }}</span>
<span class="lg:hidden">{{ $day->format('D') }}</span>
</p>

</div>
14 changes: 9 additions & 5 deletions resources/views/day.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
)
"
:class="{ '{{ $dragAndDropClasses }}': dragOver }"
class="flex-1 h-40 lg:h-48 border border-gray-200 -mt-px -ml-px"
style="min-width: 10rem;">
class="flex-1 h-24 lg:h-48 border border-gray-200 -mt-px -ml-px">

{{-- Wrapper for Drag and Drop --}}
<div
Expand All @@ -26,22 +25,27 @@ class="w-full h-full"
@if($dayClickEnabled)
wire:click="onDayClick({{ $day->year }}, {{ $day->month }}, {{ $day->day }})"
@endif
class="w-full h-full p-2 {{ $dayInMonth ? $isToday ? 'bg-yellow-100' : ' bg-white ' : 'bg-gray-100' }} flex flex-col">
class="w-full h-full p-1 lg:p-2 {{ $dayInMonth ? $isToday ? 'bg-yellow-100' : ' bg-white ' : 'bg-gray-100' }} flex flex-col">

{{-- Number of Day --}}
<div class="flex items-center">
<p class="text-sm {{ $dayInMonth ? ' font-medium ' : '' }}">
{{ $day->format('j') }}
</p>
<p class="text-xs text-gray-600 ml-4">
<p class="text-xs text-gray-600 ml-4 hidden lg:block">
@if($events->isNotEmpty())
{{ $events->count() }} {{ Str::plural('event', $events->count()) }}
@endif
</p>
<p class="text-xs text-gray-600 ml-1 lg:hidden">
@if($events->isNotEmpty())
{{ $events->count() }}
@endif
</p>
</div>

{{-- Events --}}
<div class="p-2 my-2 flex-1 overflow-y-auto">
<div class="p-0.5 lg:p-2 my-1 lg:my-2 flex-1 overflow-y-auto">
<div class="grid grid-cols-1 grid-flow-row gap-2">
@foreach($events as $event)
<div
Expand Down
6 changes: 3 additions & 3 deletions resources/views/event.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@if($eventClickEnabled)
wire:click.stop="onEventClick('{{ $event['id'] }}')"
@endif
class="py-2 px-3 shadow-md cursor-pointer
class="py-1 px-1.5 lg:py-2 lg:px-3 shadow-md cursor-pointer
@if($event['is_multiday'] ?? false)
@if($event['is_first_day'] ?? false)
rounded-l-lg rounded-r-none border-r-0
Expand All @@ -17,7 +17,7 @@ class="py-2 px-3 shadow-md cursor-pointer
@endif
">

<p class="text-sm font-medium">
<p class="text-xs lg:text-sm font-medium truncate">
{{ $event['title'] }}
@if(($event['is_multiday'] ?? false) && ($event['is_first_day'] ?? false))
<span class="text-xs text-gray-500 font-normal">
Expand All @@ -27,7 +27,7 @@ class="py-2 px-3 shadow-md cursor-pointer
</p>

@if($event['is_first_day'] ?? true)
<p class="mt-2 text-xs">
<p class="mt-1 lg:mt-2 text-xs hidden lg:block">
{{ $event['description'] ?? 'No description' }}
</p>
@endif
Expand Down