Skip to content

Commit

Permalink
chore: blade style
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Apr 7, 2024
1 parent b047e96 commit e13c677
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 17 deletions.
18 changes: 10 additions & 8 deletions resources/views/livewire/flash-messages/show.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<div x-on:notification-created.dot.window="
$notify($event.detail.message, {
wrapperId: 'flashMessageWrapper',
templateId: 'flashMessageTemplate',
autoClose: 3000,
autoRemove: 4000,
});
">
<div
x-on:notification-created.dot.window="
$notify($event.detail.message, {
wrapperId: 'flashMessageWrapper',
templateId: 'flashMessageTemplate',
autoClose: 3000,
autoRemove: 4000,
})
"
>
<div id="flashMessageWrapper" class="fixed right-4 top-4 -z-10 w-64 space-y-2"></div>

@if (session('flash-message'))
Expand Down
14 changes: 10 additions & 4 deletions resources/views/livewire/links/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,28 @@ class="{{ $user->link_shape }} {{ $user->gradient }} hover:darken-gradient group
x-sortable-handle
class="flex w-11 cursor-move items-center justify-center text-slate-300 opacity-50 hover:opacity-100 focus:outline-none"
>
<x-icons.sortable-handle class="size-6 opacity-100 sm:opacity-0 group-hover:opacity-100" />
<x-icons.sortable-handle class="size-6 opacity-100 group-hover:opacity-100 sm:opacity-0" />
</div>

<x-links.list-item :$user :$link />

<div class="flex items-center justify-center">
<div class="hidden group-hover:flex min-w-fit items-center gap-1 text-xs" title="Clicked {{ $link->click_count }} times">
<span >{{ $link->click_count }} {{ str('click')->plural($link->click_count) }}</span>
<div
class="hidden min-w-fit items-center gap-1 text-xs group-hover:flex"
title="Clicked {{ $link->click_count }} times"
>
<span>{{ $link->click_count }} {{ str('click')->plural($link->click_count) }}</span>
</div>
<form wire:submit="destroy({{ $link->id }})">
<button
onclick="if (!confirm('Are you sure you want to delete this link?')) { return false; }"
type="submit"
class="flex w-10 justify-center text-slate-300 opacity-50 hover:opacity-100 focus:outline-none"
>
<x-icons.trash class="size-5 opacity-100 sm:opacity-0 group-hover:opacity-100" x-bind:class="{ 'invisible': isDragging }" />
<x-icons.trash
class="size-5 opacity-100 group-hover:opacity-100 sm:opacity-0"
x-bind:class="{ 'invisible': isDragging }"
/>
</button>
</form>
</div>
Expand Down
6 changes: 2 additions & 4 deletions resources/views/livewire/questions/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
<form wire:submit="update">
<div class="mt-4 flex items-center justify-between">
<div class="w-full">
<div
class="mb-1"
>
<div class="mb-1">
<label for="{{ 'answer_question_'.$question->id }}" class="sr-only">Answer</label>

<textarea
id="{{ 'answer_question_'.$question->id }}"
wire:model="answer"
x-autosize
class="h-24 w-full border-none border-transparent bg-transparent text-white resize-none focus:border-transparent focus:outline-0 focus:ring-0"
class="h-24 w-full resize-none border-none border-transparent bg-transparent text-white focus:border-transparent focus:outline-0 focus:ring-0"
placeholder="Write your answer..."
maxlength="1000"
rows="3"
Expand Down
3 changes: 2 additions & 1 deletion resources/views/livewire/questions/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ class="h-10 w-10 rounded-full"
<x-dropdown-button
wire:click="ignore"
wire:confirm="Are you sure you want to delete this question?"
class="flex items-center gap-1.5">
class="flex items-center gap-1.5"
>
<x-icons.trash class="h-4 w-4" />
<span>Delete</span>
</x-dropdown-button>
Expand Down

0 comments on commit e13c677

Please sign in to comment.