Improved max size of drop down menu via css.

This commit is contained in:
Martin Edenhofer 2014-01-21 13:43:49 +01:00
parent 3a9cc85e36
commit ef69d39f5d
2 changed files with 5 additions and 1 deletions

View file

@ -35,7 +35,7 @@
<% for area in @result: %> <% for area in @result: %>
<li class="divider" style="padding: 2px 10px; height: auto; margin: 4px 0px;"><%- @T( area.name ) %></li> <li class="divider" style="padding: 2px 10px; height: auto; margin: 4px 0px;"><%- @T( area.name ) %></li>
<% for item in area.result: %> <% for item in area.result: %>
<li><a href="<%- item.url %>" class="<%= item.class %>" data-id="<%= item.id %>" style="max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"><%= item.display %></a></li> <li><a href="<%- item.url %>" class="<%= item.class %>" data-id="<%= item.id %>"><%= item.display %></a></li>
<% end %> <% end %>
<% end %> <% end %>
</ul> </ul>

View file

@ -484,6 +484,10 @@ h5 {
.dropdown-menu > li > a { .dropdown-menu > li > a {
font-weight: 200; font-weight: 200;
max-width: 340px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.dropdown-menu .count { .dropdown-menu .count {