From a6fb1ead5b9dc773813526c2d3e3beea0daebe17 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 3 Dec 2013 14:07:33 -0800 Subject: [PATCH] Use a table for tags Fixes #595 --- app/assets/stylesheets/common.css.scss | 8 ++++---- app/views/browse/_tag.html.erb | 8 ++++---- app/views/browse/_tag_details.html.erb | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 4ec0dced3..75c921336 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1069,20 +1069,20 @@ header .search_form { border: 1px solid #ddd; border-radius: 3px; font-size: 12px; + table-layout: fixed; + border-collapse: separate; - li { + th, td { border-bottom: 1px solid #ddd; } - li:last-child { + tr:last-child th, tr:last-child td { border-bottom: 0; } .browse-tag-k, .browse-tag-v { - display: inline-block; width: 50%; - float: left; padding: 6px 10px; word-wrap: break-word; } diff --git a/app/views/browse/_tag.html.erb b/app/views/browse/_tag.html.erb index b9296fa48..2081ba28d 100644 --- a/app/views/browse/_tag.html.erb +++ b/app/views/browse/_tag.html.erb @@ -1,4 +1,4 @@ -
  • - <%= format_key(tag[0]) %> - <%= format_value(tag[0], tag[1]) %> -
  • + + <%= format_key(tag[0]) %> + <%= format_value(tag[0], tag[1]) %> + diff --git a/app/views/browse/_tag_details.html.erb b/app/views/browse/_tag_details.html.erb index 090a23e7c..16e3b51b2 100644 --- a/app/views/browse/_tag_details.html.erb +++ b/app/views/browse/_tag_details.html.erb @@ -1,6 +1,6 @@ <% unless tag_details.empty? %>

    <%= t 'browse.tag_details.tags' %>

    -