From 4a05c5a49f04aa3894517452deed7062b08ba191 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Tue, 28 Feb 2012 03:53:01 -0800 Subject: [PATCH] fix some UI glitches --- app/assets/stylesheets/pages/domains.css.scss | 15 +++++++++++---- app/models/txt.rb | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/pages/domains.css.scss b/app/assets/stylesheets/pages/domains.css.scss index e787b5a..78df7ba 100644 --- a/app/assets/stylesheets/pages/domains.css.scss +++ b/app/assets/stylesheets/pages/domains.css.scss @@ -1,5 +1,12 @@ -#as_domains-active-scaffold .name-column, -#as_hosts-active-scaffold .name-column { - font-weight: bold; - text-shadow: none; +#as_domains-active-scaffold, +#as_hosts-active-scaffold { + .name-column { + font-weight: bold; + text-shadow: none; + } + .content-column { + max-width: 200px; + overflow: auto; + } } + diff --git a/app/models/txt.rb b/app/models/txt.rb index 334e017..ef0ce06 100644 --- a/app/models/txt.rb +++ b/app/models/txt.rb @@ -12,6 +12,7 @@ class TXT < Record validates :name, :hostname => {:allow_underscore => true, :allow_wildcard_hostname => true} validates :content, :presence => true, :length => { :maximum => 255 } + def to_label; type end end Txt = TXT