File tree Expand file tree Collapse file tree 1 file changed +24
-24
lines changed
resources/views/components Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Original file line number Diff line number Diff line change 11@props ([
2- ' user' ,
3- ' unlinked' => false ,
4- ' showRefresh' => false ,
2+ ' user' ,
3+ ' unlinked' => false ,
4+ ' showRefresh' => false ,
55] )
66
77<?php
1212
1313<div class =" relative inline-block" >
1414 @unless ($unlinked )
15- <a href =" {{ route (' profile' , $user -> username ()) } }" >
16- @endunless
15+ <a href =" {{ route (' profile' , $user -> username ()) } }" >
16+ @endunless
1717
18- <flux:avatar
19- circle
20- loading =" lazy"
21- src =" {{ $src } }"
22- alt =" {{ $user -> name () } }"
23- {{ $attributes -> merge ([' class' => ' bg-gray-50' ]) } } />
18+ <flux:avatar
19+ circle
20+ loading =" lazy"
21+ src =" {{ $src } }"
22+ alt =" {{ $user -> name () } }"
23+ {{ $attributes -> merge ([' class' => ' bg-gray-50' ]) } } />
2424
25- @unless ($unlinked )
26- </a >
25+ @unless ($unlinked )
26+ </a >
2727 @endunless
2828
2929 @if ($showRefresh && $user -> hasConnectedGitHubAccount () )
30- <form method =" POST" action =" {{ route (' avatar.refresh' ) } }" class =" absolute bottom-[-1px] right-0" >
31- @csrf
32- <button
33- type =" submit"
34- class =" flex items-center justify-center w-10 h-10 bg-white border-2 border-gray-300 rounded-full shadow-sm hover:bg-gray-50 hover:border-lio-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-lio-500 transition-colors"
35- title =" Refresh avatar from GitHub" >
36- <svg xmlns =" http://www.w3.org/2000/svg" class =" h-5 w-5 text-gray-600" fill =" none" viewBox =" 0 0 24 24" stroke =" currentColor" >
37- <path stroke-linecap =" round" stroke-linejoin =" round" stroke-width =" 2" d =" M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
38- </svg >
39- </button >
40- </form >
30+ <form method =" POST" action =" {{ route (' avatar.refresh' ) } }" class =" absolute bottom-[-1px] right-0" >
31+ @csrf
32+ <button
33+ type =" submit"
34+ class =" flex items-center justify-center w-10 h-10 bg-white border-2 border-gray-300 rounded-full shadow-sm hover:bg-gray-50 hover:border-lio-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-lio-500 transition-colors"
35+ title =" Refresh avatar from GitHub" >
36+ <svg xmlns =" http://www.w3.org/2000/svg" class =" h-5 w-5 text-gray-600" fill =" none" viewBox =" 0 0 24 24" stroke =" currentColor" >
37+ <path stroke-linecap =" round" stroke-linejoin =" round" stroke-width =" 2" d =" M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
38+ </svg >
39+ </button >
40+ </form >
4141 @endif
4242</div >
You can’t perform that action at this time.
0 commit comments