generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4624f1
commit 3ef6aaf
Showing
5 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...r/laravel-backend/assets/app-7ce1f91c.css → ...r/laravel-backend/assets/app-120acf28.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
@props(['title' => '', 'noBackground' => false]) | ||
@props(['title' => '', 'noBackground' => false, 'sticky' => false]) | ||
<div @class([ | ||
'lg:rounded-lg w-full shadow border', | ||
'lg:rounded-lg w-full border', | ||
'bg-white' => !$noBackground, | ||
'sticky bottom-0' => $sticky, | ||
])> | ||
@if ($title) | ||
<header class="sticky top-0 z-10 px-6 py-4 text-lg font-semibold bg-white border-b lg:rounded-t-lg"> | ||
{{ $title }} | ||
</header> | ||
@endif | ||
<div class="relative z-0 grid grid-cols-1 gap-6 p-6 lg:grid-cols-2"> | ||
<div @class(['relative z-0 grid grid-cols-1 gap-6 p-6 lg:grid-cols-2'])> | ||
{{ $slot }} | ||
</div> | ||
</div> |
33 changes: 33 additions & 0 deletions
33
resources/views/components/form/layout/flex-col-sticky.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@props([ | ||
'maxWidth' => null, | ||
'sticky' => false, | ||
]) | ||
@php | ||
$maxWidth = [ | ||
'xs' => 'md:max-w-xs', | ||
'sm' => 'md:max-w-sm', | ||
'md' => 'md:max-w-md', | ||
'lg' => 'md:max-w-lg', | ||
'xl' => 'md:max-w-xl', | ||
'2xl' => 'md:max-w-2xl', | ||
'3xl' => 'md:max-w-3xl', | ||
'4xl' => 'md:max-w-4xl', | ||
'5xl' => 'md:max-w-5xl', | ||
'full' => 'max-w-full', | ||
][$maxWidth ?? '2xl']; | ||
@endphp | ||
<div @class([ | ||
'relative w-full', | ||
$maxWidth, | ||
'sticky top-0 md:h-[calc(100vh-181px)] overflow-hidden overflow-y-auto lm-scroll-hidden' => $sticky, | ||
])> | ||
<div @class([ | ||
'flex flex-col gap-y-4 w-full mb-2', | ||
'sticky top-0 md:h-[calc(100vh-189px)] overflow-hidden overflow-y-auto lm-scroll-hidden' => $sticky, | ||
])> | ||
{{ $slot }} | ||
</div> | ||
@if (isset($stickyContent)) | ||
{{ $stickyContent }} | ||
@endif | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters