Skip to content

Commit 83e1438

Browse files
committed
updated user menu
1 parent d03845d commit 83e1438

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

views/layout/header.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,25 @@
1818
<a href="/"><img src="/assets/header.png" height="80" /></a>
1919
</div>
2020
{{if .user}}
21-
<div class="dropdown">
22-
<img src="/assets/profile.png" alt="Account Picture" height="50" width="50" onclick="settings()" class="dropbtn">
21+
<div class="dropdown" onclick="settings()">
22+
<div style="display: flex; align-items: center;">
23+
<img src="/assets/profile.png" alt="Account Picture" height="50" width="50" class="dropbtn">
24+
<i class="fa fa-caret-down dropdown-arrow"></i>
25+
</div>
2326
<div id="setting" class="dropdown-content">
24-
<p style="text-align: center; color: black;"><strong>{{.user}}</strong></p>
27+
<p style="text-align: center; color: black; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;">
28+
<strong>{{.user}}</strong></p>
2529
<hr>
2630
<a href='/user/dashboard'><i class="fa fa-dashboard"></i> Dashboard</a>
31+
<hr>
2732
<a href='/user/update'><i class="fa fa-pencil-square-o"></i> Update User</a>
2833
<a href='/user/delete'><i class="fa fa-trash-o"></i> Delete Account</a>
2934
<hr>
3035
<a href='/user/logout'><i class="fa fa-sign-out"></i> Logout</a>
3136
</div>
3237
</div>
38+
{{else}}
3339
</div>
34-
{{else}}
3540
<div id="menu"></div>
3641
{{end}}
3742
<div class="container">

0 commit comments

Comments
 (0)