summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-03-07 11:05:23 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-03-07 11:05:23 +0100
commitd9bd6f325392316f6b2d83d0b712d473d8510fda (patch)
tree28792b01cb82edd8750e207e687f19a39456db17
parentc401a8cf2653512c9babfabca4a5d24293e8e7be (diff)
downloadnextcloud-server-d9bd6f325392316f6b2d83d0b712d473d8510fda.tar.gz
nextcloud-server-d9bd6f325392316f6b2d83d0b712d473d8510fda.zip
Fixed public template
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--apps/files_sharing/css/public.scss9
-rw-r--r--apps/files_sharing/lib/Template/LinkMenuAction.php8
-rw-r--r--core/css/header.scss1
-rw-r--r--core/css/public.scss34
-rw-r--r--core/templates/layout.public.php22
5 files changed, 36 insertions, 38 deletions
diff --git a/apps/files_sharing/css/public.scss b/apps/files_sharing/css/public.scss
index 1e9dec87fad..e040d449129 100644
--- a/apps/files_sharing/css/public.scss
+++ b/apps/files_sharing/css/public.scss
@@ -88,15 +88,6 @@ thead {
opacity: .5;
}
-#directLink-container {
- flex-wrap: wrap;
-}
-
-#directLink {
- margin-left: 30px;
- flex-basis: 100%;
-}
-
/* header buttons */
#details {
display: inline-flex;
diff --git a/apps/files_sharing/lib/Template/LinkMenuAction.php b/apps/files_sharing/lib/Template/LinkMenuAction.php
index 2fdf83e7026..519bc553228 100644
--- a/apps/files_sharing/lib/Template/LinkMenuAction.php
+++ b/apps/files_sharing/lib/Template/LinkMenuAction.php
@@ -47,8 +47,12 @@ class LinkMenuAction extends SimpleMenuAction {
'<a id="directLink-container">' .
'<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' .
'<label for="directLink">' . Util::sanitizeHTML($this->getLabel()) . '</label>' .
- '<input id="directLink" type="text" readonly="" value="' . Util::sanitizeHTML($this->getLink()) . '">' .
'</a>' .
+ '</li>' .
+ '<li>' .
+ '<span class="menuitem">' .
+ '<input id="directLink" type="text" readonly="" value="' . Util::sanitizeHTML($this->getLink()) . '">' .
+ '</span>' .
'</li>';
}
-} \ No newline at end of file
+}
diff --git a/core/css/header.scss b/core/css/header.scss
index 35e756cfcd5..86739240aeb 100644
--- a/core/css/header.scss
+++ b/core/css/header.scss
@@ -84,6 +84,7 @@
max-height: 280px;
right: 0;
top: 44px;
+ margin: 0;
&:not(.popovermenu) {
display: none;
diff --git a/core/css/public.scss b/core/css/public.scss
index 3651e701c34..6a175de6431 100644
--- a/core/css/public.scss
+++ b/core/css/public.scss
@@ -1,22 +1,22 @@
#body-public {
- .header-right {
+ .header-right {
- span:not(.popovermenu) a {
- color: $color-primary-text;
- }
+ span:not(.popovermenu) a {
+ color: $color-primary-text;
+ }
- .menutoggle,
- #header-primary-action[class^='icon-'] {
- padding: 14px;
- padding-right: 40px;
- background-position: right 15px center;
- color: $color-primary-text;
- cursor: pointer;
- }
+ .menutoggle,
+ #header-primary-action[class^='icon-'] {
+ padding: 14px;
+ padding-right: 40px;
+ background-position: right 15px center;
+ color: $color-primary-text;
+ cursor: pointer;
+ }
- .menutoggle {
- padding-right: 10px;
- }
+ #header-secondary-action {
+ margin-right: 13px;
+ }
- }
-} \ No newline at end of file
+ }
+}
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index b9451fe05a2..d3c12f8fd96 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -54,16 +54,18 @@
</a>
</span>
<?php if($template->getActionCount()>1) { ?>
- <span id="header-actions-toggle" class="menutoggle icon-more-white"></span>
- <div id="share-menu" class="popovermenu menu">
- <ul>
- <?php
- /** @var \OCP\AppFramework\Http\Template\IMenuAction $action */
- foreach($template->getOtherActions() as $action) {
- print_unescaped($action->render());
- }
- ?>
- </ul>
+ <div id="header-secondary-action">
+ <span id="header-actions-toggle" class="menutoggle icon-more-white"></span>
+ <div id="share-menu" class="popovermenu menu">
+ <ul>
+ <?php
+ /** @var \OCP\AppFramework\Http\Template\IMenuAction $action */
+ foreach($template->getOtherActions() as $action) {
+ print_unescaped($action->render());
+ }
+ ?>
+ </ul>
+ </div>
</div>
<?php } ?>
</div>