Skip to content

Commit

Permalink
Merge pull request #290 from yungifez/dev
Browse files Browse the repository at this point in the history
UI enhancements
  • Loading branch information
yungifez authored Mar 17, 2023
2 parents bf57403 + 9e6ade0 commit 8eb6089
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/dropdown.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@props(['buttonLabel' => 'Actions', 'links', 'groupClass' => null, 'buttonClass' => null, 'dropdownClass' => null])

<div class="{{$groupClass}} relative flex flex-col items-center justify-between" x-data="{dropdown : false}" >
<x-button label="{{$buttonLabel}}" class="{{$buttonClass}} bg-gray-500 capitalize border" aria-haspopup="true" type="button" aria-expanded="false" @click="dropdown = !dropdown"/>
<x-button label="{{$buttonLabel}}" icon="fas fa-angle-down" class="{{$buttonClass}} bg-gray-500 capitalize border" aria-haspopup="true" type="button" aria-expanded="false" @click="dropdown = !dropdown"/>
<div @click.outside="dropdown = false" class="{{$dropdownClass}} absolute top-14 p-2 min-w-[36] z-30 bg-white border dark:bg-gray-800 rounded" x-show="dropdown" style="display: none">
{{$slot}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/print.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
.logo{
width: 100px;
height: 80px;
height: 100px;
border-radius: 50px;
}
p{
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/list-syllabi-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
<div class="card-body">
@if (!auth()->user()->hasRole('student'))
<x-select id="my_class" label="Select a class to see syllabus" group-class="my-6 w-1/2" name="" wire:model="class">
<x-select id="my_class" label="Select a class to see syllabus" group-class="my-6 md:w-1/2" name="" wire:model="class">
@foreach ($classes as $item)
<option value="{{$item['id']}}">{{$item['name']}}</option>
@endforeach
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/list-timetables-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
<div class="card-body">
@if (!auth()->user()->hasRole('student'))
<x-select id="my_class" label="Select a class to see timetable" group-class="my-6 w-1/2" name="" wire:model="class">
<x-select id="my_class" label="Select a class to see timetable" group-class="my-6 md:w-1/2" name="" wire:model="class">
@foreach ($classes as $item)
<option value="{{$item['id']}}">{{$item['name']}}</option>
@endforeach
Expand Down
4 changes: 3 additions & 1 deletion resources/views/livewire/manage-timetable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
{{--form for creating timeSlots--}}
<x-display-validation-errors/>
<x-loading-spinner/>
<div class="md:grid grid-cols-4 gap-2" id="create-timetable-record">
<!--Adds scrolling offset-->
<div class=" relative bottom-24"id="create-timetable-record" ></div>
<div class="md:grid grid-cols-4 gap-2" >
<x-select id="timeslot" name="timeSlot" label="Time Slot" wire:model="timeSlot">
@isset($timeSlots)
@foreach ($timeSlots as $item)
Expand Down

0 comments on commit 8eb6089

Please sign in to comment.