From d93df86298450512853e4085f519486eea2d8468 Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Mon, 5 May 2014 13:54:56 +0000 Subject: [PATCH] Fixed some wrapping problems when the user has set a larger font size. And some UI love for the file permissions page (as requested by Mike ;) and changed the position of the file properties link on the cloud page. --- include/reddav.php | 16 ++++++++-------- view/theme/redbasic/css/style.css | 14 ++++++++++++-- view/tpl/attach_edit.tpl | 20 +++++++------------- 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/include/reddav.php b/include/reddav.php index 03cfe1aab..0650531dd 100644 --- a/include/reddav.php +++ b/include/reddav.php @@ -1038,6 +1038,14 @@ class RedBrowser extends DAV\Browser\Plugin { public function htmlActionsPanel(DAV\INode $node, &$output) { + + if($this->auth->owner_id && $this->auth->owner_id == $this->auth->channel_id) { + $channel = get_app()->get_channel(); + if($channel) { + $output .= '' . t('Edit File properties') . ' '; + } + } + if (!$node instanceof DAV\ICollection) return; @@ -1062,14 +1070,6 @@ class RedBrowser extends DAV\Browser\Plugin { '; - - if($this->auth->owner_id && $this->auth->owner_id == $this->auth->channel_id) { - $channel = get_app()->get_channel(); - if($channel) { - $output .= ' ' . t('Edit File properties') . ''; - } - } - } /** diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index a4373ed37..579ec9958 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -386,6 +386,7 @@ aside li { .vcard dl { clear: both; + word-wrap:break-word; } .vcard-profile-edit-icon { @@ -1011,7 +1012,7 @@ aside li { .profile-match-name { text-align: center; width: 120px; - height: 18px; + height: 1.5em; overflow: hidden !important; } @@ -1033,7 +1034,7 @@ aside li { float: left; padding: 10px; width: 120px; - height: 120px; + min-height: auto; scroll: auto; } #profile-match-wrapper-end { @@ -2143,6 +2144,15 @@ nav .dropdown-menu>li>a:hover,nav .dropdown-menu>li>a:focus{ color: $nav_active_icon_colour; } +/* Files */ + +#attach-edit-perms { + margin-top: 25px; + margin-bottom: 20px; + font-weight: bold; + font-size: 18px; +} + /* bootstrap overrides */ blockquote { font-size: $body_font_size; diff --git a/view/tpl/attach_edit.tpl b/view/tpl/attach_edit.tpl index 5d2703a2d..3a4f0dd2a 100644 --- a/view/tpl/attach_edit.tpl +++ b/view/tpl/attach_edit.tpl @@ -1,11 +1,13 @@ +

{{$header}}

-

{{$file.filename}}

- - - - +
+ +{{$aclselect}} {{$file.filename}} +
@@ -14,7 +16,6 @@ - {{if $isadir}}
@@ -28,13 +29,6 @@
{{$cpldesc}}

-
- -{{$aclselect}} -
-