summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthiasgrimm <matthiasgrimm@users.sourceforge.net>2005-05-17 19:55:46 +0200
committermatthiasgrimm <matthiasgrimm@users.sourceforge.net>2005-05-17 19:55:46 +0200
commitf330ee2babdb79935de1bf551f415518ddb73de6 (patch)
tree30e483cc60c5add9d25f0000e6d656f21537e738
parentd48c0af2c067f9b5a5bf956b255b70f5358a350f (diff)
downloadrpg-f330ee2babdb79935de1bf551f415518ddb73de6.tar.gz
rpg-f330ee2babdb79935de1bf551f415518ddb73de6.tar.bz2
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
-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%;
}