From 9b8a31474250b2e5aed15d350ab70f2031363343 Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Wed, 2 Sep 2015 17:45:07 +0200 Subject: [PATCH] Trim long container names and labels in details fixes #418 --- client/app/scripts/components/node-details-table.js | 10 +++++++--- client/app/scripts/components/node-details.js | 8 +++++--- client/app/styles/main.less | 7 +++++-- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/client/app/scripts/components/node-details-table.js b/client/app/scripts/components/node-details-table.js index dd43a590c..baa8601da 100644 --- a/client/app/scripts/components/node-details-table.js +++ b/client/app/scripts/components/node-details-table.js @@ -14,11 +14,15 @@ const NodeDetailsTable = React.createClass({ {this.props.rows.map(function(row) { return (
-
{row.key}
+
{row.key}
{isNumeric &&
{row.value_major}
} {isNumeric &&
{row.value_minor}
} - {!isNumeric &&
{row.value_major}
} - {!isNumeric && row.value_minor &&
{row.value_minor}
} + {!isNumeric &&
+ {row.value_major} +
} + {!isNumeric && row.value_minor &&
+ {row.value_minor} +
}
); })} diff --git a/client/app/scripts/components/node-details.js b/client/app/scripts/components/node-details.js index 0696bd79e..cd1177d3e 100644 --- a/client/app/scripts/components/node-details.js +++ b/client/app/scripts/components/node-details.js @@ -28,7 +28,7 @@ const NodeDetails = React.createClass({ return (
-

+

n/a

@@ -64,10 +64,12 @@ const NodeDetails = React.createClass({ return (
-

+

{details.label_major}

-
{details.label_minor}
+
+ {details.label_minor} +
diff --git a/client/app/styles/main.less b/client/app/styles/main.less index 2dba6430f..20df646ba 100644 --- a/client/app/styles/main.less +++ b/client/app/styles/main.less @@ -310,13 +310,16 @@ body { &-table { - margin-bottom: 8px; + &:last-child { + margin-bottom: 1em; + } &-title { text-transform: uppercase; - margin-bottom: 0; + margin-bottom: 0.25em; color: @text-secondary-color; font-size: 100%; + line-height: 125%; } &-row {