summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media.php3
-rw-r--r--tpl/default/layout.css9
2 files changed, 4 insertions, 8 deletions
diff --git a/media.php b/media.php
index 7f2101449..3b71f62a3 100644
--- a/media.php
+++ b/media.php
@@ -91,7 +91,8 @@ function media_upload($NS){
function media_html_list_namespaces($item){
$ret = '';
$ret .= '<a href="'.DOKU_BASE.'media.php?ns='.idfilter($item['id']).'" class="idx_dir">';
- $ret .= $item['id'];
+ $pos = strrpos($item['id'], ':');
+ $ret .= substr($item['id'], $pos > 0 ? $pos + 1 : 0);
$ret .= '</a>';
return $ret;
}
diff --git a/tpl/default/layout.css b/tpl/default/layout.css
index db419f00e..fea7c58ab 100644
--- a/tpl/default/layout.css
+++ b/tpl/default/layout.css
@@ -98,17 +98,12 @@ div.uploadform {
.mediaselect-left {
float:left;
padding: 0.5em;
-/* height:230px;
- overflow:auto;*/
+ width:30%;
}
.mediaselect-right {
float:right;
border-left: 1px solid #8cacbb;
padding: 0.5em;
- width: 50%;
- max-width: 50%;
-/* width:350px;
- height:230px;
- overflow:auto;*/
+ width:65%;
}