Remove space reservation in sidebar for anime info
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
component AudioPlayer
|
||||
#audio-player
|
||||
#audio-player-anime-info
|
||||
#audio-player-anime-info.hidden
|
||||
a#audio-player-anime-link.ajax(href="", title="")
|
||||
img#audio-player-anime-image.lazy.hidden(data-src="", data-webp="true", alt="Anime cover")
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
default-transition
|
||||
justify-content center
|
||||
position relative
|
||||
margin 0.8rem 0
|
||||
margin-bottom 0.8rem
|
||||
flex-shrink 0
|
||||
|
||||
#audio-player-anime-info
|
||||
@ -11,6 +11,7 @@
|
||||
justify-content center
|
||||
align-items center
|
||||
width 100%
|
||||
margin-top 0.8rem
|
||||
|
||||
#audio-player-anime-link
|
||||
width 142px
|
||||
|
@ -35,10 +35,6 @@ component Sidebar(user *arn.User)
|
||||
|
||||
//- if arn.IsDevelopment()
|
||||
//- SidebarButton("Groups", "/groups", "users")
|
||||
|
||||
if user != nil && (user.Role == "editor" || user.Role == "admin")
|
||||
SidebarButton("Editor", "/editor", "pencil")
|
||||
SidebarButton("Log", "/log", "list")
|
||||
|
||||
//- Disabled:
|
||||
//- SidebarButton("Dash", "/dashboard", "tachometer")
|
||||
@ -59,8 +55,12 @@ component Sidebar(user *arn.User)
|
||||
Icon("search")
|
||||
FuzzySearch
|
||||
|
||||
if user != nil && user.Role == "admin"
|
||||
SidebarButton("Admin", "/admin", "wrench")
|
||||
if user != nil && (user.Role == "editor" || user.Role == "admin")
|
||||
SidebarButton("Log", "/log", "list")
|
||||
SidebarButton("Editor", "/editor", "pencil")
|
||||
|
||||
//- if user != nil && user.Role == "admin"
|
||||
//- SidebarButton("Admin", "/admin", "wrench")
|
||||
|
||||
a.sidebar-link.action(href="#", data-action="toggleTheme", data-trigger="click")
|
||||
.sidebar-button
|
||||
|
Reference in New Issue
Block a user