diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3445726..f0ab8db 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -177,7 +177,10 @@ module ApplicationHelper end def file_manager_button(title, icon, url) - content_tag('div', link_to(image_tag(icon, :alt => title, :title => title) + content_tag('div', title), url), :class => 'file-manager-button') + content_tag( 'div', + link_to(image_tag(icon, :alt => title, :title => title) + + content_tag('span', title), + url), :class => 'file-manager-button' ) end def hide(id) diff --git a/public/stylesheets/controller_profile_editor.css b/public/stylesheets/controller_profile_editor.css index 9823900..88a7fd2 100644 --- a/public/stylesheets/controller_profile_editor.css +++ b/public/stylesheets/controller_profile_editor.css @@ -27,12 +27,12 @@ /* file manager (big) style */ -div.file-manager { +.file-manager { clear: both; } -div.file-manager -div.file-manager-button { +.file-manager +.file-manager-button { float: left; width: 140px; text-align: center; @@ -40,13 +40,13 @@ div.file-manager-button { margin-top: 0.5em; } -div.file-manager -div.file-manager-button a img { +.file-manager +.file-manager-button a img { border: none; } -div.file-manager -div.file-manager-button a { +.file-manager +.file-manager-button a { border: 2px solid transparent; display: block; padding: 3px; @@ -57,3 +57,7 @@ div.file-manager-button a { line-height: 100%; } +.file-manager-button span { + display: block; +} + -- libgit2 0.21.2