Skip to content

Commit

Permalink
run duster fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed May 20, 2024
1 parent 4450432 commit e160e1c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 27 deletions.
19 changes: 8 additions & 11 deletions resources/views/components/input/radio.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,37 @@
class="relative flex items-center"
{{ $attributes->whereStartsWith(['wire:key']) }}
>
<div class="flex items-center h-6">
<div class="flex h-6 items-center">

<input
{{ $attributes->whereStartsWith(['wire', 'x']) }}
value="{{ $value ?? null }}"
:id="$id('input')"
type="radio"

@class([
'w-4 h-4 text-indigo-600 rounded-full read-only:ring-opacity-50',
'border-gray-300 ring-gray-300 focus:ring-indigo-600' => $errors->missing($model),
'border-gray-300 ring-gray-300 focus:ring-indigo-600' => $errors->missing(
$model),
'border-red-400 ring-red-400 focus:ring-red-500' => $errors->has($model),
])

@if(! $attributes->get('name'))
name="{{ $attributes->get('wire:model') }}"
@endif

@if (!$attributes->get('name')) name="{{ $attributes->get('wire:model') }}" @endif
@error($model)
aria-invalid="true"
aria-description="{{ $message }}"
@enderror
>
</div>

<div class="ml-2 text-sm leading-6 select-none">
<div class="ml-2 select-none text-sm leading-6">

@if ($label)
<label
:for="$id('input')"

@class([
'font-medium text-xs',
$label instanceof \Illuminate\View\ComponentSlot ? $label->attributes->get('class') : null,
$label instanceof \Illuminate\View\ComponentSlot
? $label->attributes->get('class')
: null,
'text-gray-900 dark:text-neutral-300' => $errors->missing($model),
'text-red-700' => $errors->has($model),
])
Expand Down
8 changes: 4 additions & 4 deletions resources/views/components/input/text.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
<input
{{ $attributes }}
:id="$id('input')"

@class([
'block w-full rounded-md border-0 py-1.5 shadow-sm ring-1 ring-inset transition-all focus:ring-2 read-only:ring-opacity-50 read-only:text-opacity-50 focus:ring-inset sm:text-sm sm:leading-6 dark:bg-neutral-950 dark:text-neutral-300',
'text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-indigo-600 dark:ring-neutral-500' => $errors->missing($model),
'text-red-700 ring-red-400 placeholder:text-red-300 focus:ring-red-500 dark:ring-red-500' => $errors->has($model),
'text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-indigo-600 dark:ring-neutral-500' => $errors->missing(
$model),
'text-red-700 ring-red-400 placeholder:text-red-300 focus:ring-red-500 dark:ring-red-500' => $errors->has(
$model),
$attributes->get('class'),
])

@error($model)
aria-invalid="true"
aria-description="{{ $message }}"
Expand Down
6 changes: 3 additions & 3 deletions resources/views/components/message/panel/headers.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<x-message.panel>

<table class="min-w-full divide-y divide-gray-300 dark:divide-neutral-800">
<tbody class="bg-white divide-y divide-gray-200 dark:divide-neutral-800 dark:bg-neutral-900">
<tbody class="divide-y divide-gray-200 bg-white dark:divide-neutral-800 dark:bg-neutral-900">

@foreach ($message->parsed->getAllHeaders() as $header)
<tr>
<td class="py-4 pl-4 pr-3 text-sm font-medium text-gray-900 whitespace-nowrap sm:pl-6 dark:text-neutral-200">{{ $header->getName() }}</td>
<td class="px-3 py-4 text-sm text-gray-500 whitespace-nowrap dark:text-neutral-300">{{ $header->getValue() }}</td>
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 dark:text-neutral-200">{{ $header->getName() }}</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 dark:text-neutral-300">{{ $header->getValue() }}</td>
</tr>
@endforeach

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/message/tab-button.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<button
x-tabs:tab
type="button"
class="px-3 py-1 transition rounded-md cursor-default"
class="cursor-default rounded-md px-3 py-1 transition"
x-bind:class="{
'text-sm text-neutral-400': true,
'bg-neutral-100 text-neutral-500 shadow-inner dark:bg-neutral-200 dark:text-neutral-800': $tab.isSelected,
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/support/statusbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{{-- Online status --}}
<div class="flex items-center space-x-2">
<span class="relative flex w-3 h-3">
<span class="relative flex h-3 w-3">
<span @class([
'absolute inline-flex w-full h-full rounded-full opacity-75 transition-all',
'bg-rose-400 animate-ping' => !$online,
Expand Down
12 changes: 6 additions & 6 deletions resources/views/livewire/inbox.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
x-on:keydown.meta.r.prevent="
window.location.href = '/{{ $this->message?->id }}';
"
class="flex w-full h-screen"
class="flex h-screen w-full"
>

<section class="relative flex flex-col w-4/12 h-full pt-8 overflow-y-scroll transition-colors min-w-80 bg-gray-50 dark:bg-neutral-900">
<section class="relative flex h-full w-4/12 min-w-80 flex-col overflow-y-scroll bg-gray-50 pt-8 transition-colors dark:bg-neutral-900">

<label class="px-3">
<input
placeholder="Search..."
wire:model.live="search"
class="w-full p-4 transition-all duration-200 bg-gray-100 border-none rounded-lg focus:outline-none focus:ring-2 dark:bg-neutral-800 dark:text-neutral-300 dark:placeholder:text-neutral-400"
class="w-full rounded-lg border-none bg-gray-100 p-4 transition-all duration-200 focus:outline-none focus:ring-2 dark:bg-neutral-800 dark:text-neutral-300 dark:placeholder:text-neutral-400"
>
</label>

<ul class="flex-grow mt-6">
<ul class="mt-6 flex-grow">

@forelse ($this->inbox as $message)
<li wire:key="{{ $message->id }}">
Expand All @@ -45,7 +45,7 @@ class="w-full"

@empty

<li class="block w-full px-4 py-5 text-center select-none text-neutral-500">
<li class="block w-full select-none px-4 py-5 text-center text-neutral-500">
@if ($search)
Nothing found 🙈
@else
Expand All @@ -70,7 +70,7 @@ class="w-full"
@else
<section
wire:key="no-message"
class="flex flex-col items-center justify-center w-full h-full px-4 transition-colors bg-white dark:bg-neutral-950"
class="flex h-full w-full flex-col items-center justify-center bg-white px-4 transition-colors dark:bg-neutral-950"
>
<x-heroicon-o-envelope
class="size-48 text-neutral-200 dark:text-neutral-500"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="space-y-2">

<div class="flex flex-row px-2 space-x-4">
<div class="flex flex-row space-x-4 px-2">
@foreach (Framework::cases() as $framework)
<x-input.radio
wire:model.live="framework"
Expand Down

0 comments on commit e160e1c

Please sign in to comment.