From f330ee2babdb79935de1bf551f415518ddb73de6 Mon Sep 17 00:00:00 2001 From: matthiasgrimm <matthiasgrimm@users.sourceforge.net> Date: Tue, 17 May 2005 19:55:46 +0200 Subject: [PATCH] beautify media upload window This patch cleans up the media upload window. Although the namespace list makes levels clear through indention, sub-namespaces were always printed with full path. This redundant information have been removed to save space. This space was added to the objects list on the right side. darcs-hash:20050517175546-7ef76-1c86eb762e0b44dc4960062524cda6554befbcea.gz --- media.php | 3 ++- tpl/default/layout.css | 9 ++------- 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%; } -- GitLab