mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
🎨 Add new Flux icons: implement multiple reusable icon components (e.g., hand-raised, hand-thumb-up, heart, hashtag, home) with variant support for improved UI consistency.
This commit is contained in:
21
resources/views/flux/aside.blade.php
Normal file
21
resources/views/flux/aside.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@blaze
|
||||
|
||||
@props([
|
||||
'sticky' => null,
|
||||
])
|
||||
|
||||
@php
|
||||
$classes = Flux::classes('[grid-area:aside]');
|
||||
|
||||
if ($sticky) {
|
||||
$attributes = $attributes->merge([
|
||||
'x-data' => '',
|
||||
'x-bind:style' => '{ position: \'sticky\', top: $el.offsetTop + \'px\', \'max-height\': \'calc(100dvh - \' + $el.offsetTop + \'px)\' }',
|
||||
'class' => 'max-h-[100vh] overflow-y-auto',
|
||||
]);
|
||||
}
|
||||
@endphp
|
||||
|
||||
<div {{ $attributes->class($classes) }} data-flux-aside>
|
||||
{{ $slot }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user