Skip to content

Commit 57c8fa0

Browse files
committed
improved users layout
1 parent 3a4ccf7 commit 57c8fa0

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

resources/views/livewire/users/home.blade.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@ class="contents"
2424
@if (count($users) > 0)
2525
<div class="flex flex-col gap-2">
2626
@foreach ($users as $user)
27-
<div
28-
class="rounded-xs xs:flex-row xs:items-center flex flex-col justify-between gap-2 border border-[#c8b96e4d] p-2.5"
29-
>
30-
<div class="inline-flex w-full max-w-80 items-center gap-2 overflow-hidden text-ellipsis">
27+
<div class="rounded-xs inline-flex items-center justify-between gap-2.5 border border-[#c8b96e4d] p-2.5">
28+
<div class="flex w-full max-w-80 flex-row items-center gap-2 overflow-hidden">
3129
<img
3230
src="{{ $user->avatar }}?size=128&r=g&d=mp"
3331
class="size-10 rounded-full"
3432
/>
3533

36-
<div class="flex flex-col">
34+
<div class="flex max-w-0 flex-col text-nowrap">
3735
<span class="text-base/4.5 font-semibold">
3836
{{ $user->name }}
3937
</span>
@@ -45,7 +43,7 @@ class="size-10 rounded-full"
4543

4644
<x-anchor-button
4745
href="{{ route('users.profile', ['id' => $user->id]) }}"
48-
class="px-3 py-2 text-xs/3"
46+
class="ml-auto text-nowrap px-3 py-2 text-xs/3"
4947
wire:navigate
5048
>
5149
View User

0 commit comments

Comments
 (0)