diff --git a/_embed/public/css/styles.css b/_embed/public/css/styles.css index 47d38520..de714cbe 100644 --- a/_embed/public/css/styles.css +++ b/_embed/public/css/styles.css @@ -1128,7 +1128,7 @@ footer a:hover { display: none; } #bottom-bar>*:first-child { - max-width: calc(100% - 16em); + max-width: calc(100% - 16em) !important; } #main-actions { position: fixed; diff --git a/_embed/templates/base.tmpl b/_embed/templates/base.tmpl index 36c7af0c..01a6e207 100644 --- a/_embed/templates/base.tmpl +++ b/_embed/templates/base.tmpl @@ -79,13 +79,17 @@ {{- end }} + {{- if .IsDir }}
open_in_new + See raw
+ {{- end }} - {{- if .User.AllowEdit }} + {{- if and (.User.AllowEdit) (.IsDir) }}
forward + Move file
{{- end }} @@ -95,7 +99,7 @@ {{- end }} - {{- if .User.AllowEdit }} + {{- if and .User.AllowEdit .IsDir }}
deleteDelete
@@ -127,6 +131,26 @@ {{- end }} + {{- if not .IsDir }} +
+ open_in_new + See raw +
+ {{- end }} + + {{- if and .User.AllowEdit (not .IsDir) }} +
+ deleteDelete +
+ {{- end }} + + {{- if and (.User.AllowEdit) (not .IsDir) }} +
+ forward + Move file +
+ {{- end }} +
{{- if not .IsDir}}{{ end }} file_downloadDownload