From ef69d39f5da8e9cf0bdc73d8f75dac5768778f28 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 21 Jan 2014 13:43:49 +0100 Subject: [PATCH] Improved max size of drop down menu via css. --- app/assets/javascripts/app/views/navigation.jst.eco | 2 +- app/assets/stylesheets/zzz.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/views/navigation.jst.eco b/app/assets/javascripts/app/views/navigation.jst.eco index 2ab328b6f..db7a186af 100644 --- a/app/assets/javascripts/app/views/navigation.jst.eco +++ b/app/assets/javascripts/app/views/navigation.jst.eco @@ -35,7 +35,7 @@ <% for area in @result: %>
  • <%- @T( area.name ) %>
  • <% for item in area.result: %> -
  • <%= item.display %>
  • +
  • <%= item.display %>
  • <% end %> <% end %> diff --git a/app/assets/stylesheets/zzz.css b/app/assets/stylesheets/zzz.css index d3e9a7407..6486368d0 100644 --- a/app/assets/stylesheets/zzz.css +++ b/app/assets/stylesheets/zzz.css @@ -484,6 +484,10 @@ h5 { .dropdown-menu > li > a { font-weight: 200; + max-width: 340px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .dropdown-menu .count {