Skip to content

Commit 526bf96

Browse files
committedDec 17, 2022
优化:优化全局移动端样式
1 parent 4ab4781 commit 526bf96

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed
 

‎app/Themes/CodeFec/resources/views/layouts/themes/header-right.blade.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</a>
2727
</div>
2828

29-
<div class="nav-item dropdown me-3">
29+
<div class="nav-item dropdown me-3 d-none d-md-inline-flex">
3030
@if(session()->get('theme','theme-dark')!=="theme-dark")
3131
<a href="#" id="core_update_theme" class="px-0 nav-link">
3232
<!-- Download SVG icon from http://tabler-icons.io/i/bell -->
@@ -53,7 +53,7 @@
5353

5454
<div id="vue-header-right-my" class="nav-item dropdown">
5555
<a href="#" class="p-0 nav-link d-flex lh-1 text-reset" data-bs-toggle="dropdown" aria-label="Open user menu">
56-
{!! avatar(auth()->id(),"avatar-sm") !!}
56+
<span class="avatar avatar-sm avatar-rounded" style="background-image: url({{super_avatar(auth()->data())}})"></span>
5757
<div class="d-none d-xl-block ps-2">
5858
<div>{{auth()->data()['username']}}</div>
5959
<div class="mt-1 small text-muted">{{__("user.st member",['member' => auth()->id()])}}</div>
@@ -75,9 +75,20 @@
7575
</div>
7676
@else
7777
<div class="nav-item dropdown">
78-
<span>
78+
<span class="d-none d-md-block">
7979
<a href="/register" class="btn btn-light">注册</a>
8080
<a href="/login" class="btn btn-dark">登陆</a>
8181
</span>
82+
<span class="d-block d-md-none">
83+
<a class="px-0 nav-link" href="/login">
84+
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-login" width="24"
85+
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
86+
stroke-linecap="round" stroke-linejoin="round">
87+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
88+
<path d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"></path>
89+
<path d="M20 12h-13l3 -3m0 6l-3 -3"></path>
90+
</svg>
91+
</a>
92+
</span>
8293
</div>
8394
@endif

0 commit comments

Comments
 (0)
Please sign in to comment.