Skip to content

Commit a8fb7e1

Browse files
authored
Merge pull request #12316 from nextcloud/public-download-button-fix
Better primary visual on public pages
2 parents 3e8ea39 + f54b201 commit a8fb7e1

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

apps/files_sharing/css/public.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,20 @@ thead {
192192
font-weight: bold;
193193
}
194194

195+
// hide the download entry on the menu
196+
// on public share when NOT on mobile
197+
@media only screen and (min-width: 769px) {
198+
#body-public {
199+
.header-right {
200+
#header-actions-menu {
201+
> ul > li#download {
202+
display: none;
203+
}
204+
}
205+
}
206+
}
207+
}
208+
195209
// hide the primary on public share on mobile
196210
@media only screen and (max-width: 768px) {
197211
#body-public {

core/templates/layout.public.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@
5151
?>
5252
<div class="header-right">
5353
<span id="header-primary-action" class="<?php if($template->getActionCount() === 1) { p($primary->getIcon()); } ?>">
54-
<a href="<?php p($primary->getLink()); ?>">
54+
<a href="<?php p($primary->getLink()); ?>" class="primary button">
5555
<span><?php p($primary->getLabel()) ?></span>
5656
</a>
5757
</span>
58-
<?php if($template->getActionCount()>1) { ?>
58+
<?php if($template->getActionCount() > 1) { ?>
5959
<div id="header-secondary-action">
6060
<span id="header-actions-toggle" class="menutoggle icon-more-white"></span>
6161
<div id="header-actions-menu" class="popovermenu menu">
6262
<ul>
6363
<?php
6464
/** @var \OCP\AppFramework\Http\Template\IMenuAction $action */
65-
foreach($template->getOtherActions() as $action) {
65+
foreach($others as $action) {
6666
print_unescaped($action->render());
6767
}
6868
?>

0 commit comments

Comments
 (0)