From fe5820efee258d426186dcbbcf6eee38757c01e8 Mon Sep 17 00:00:00 2001 From: FangyuanCheng Date: Sun, 27 Jan 2019 23:24:51 +0800 Subject: [PATCH] The tag column sets the minimum width Signed-off-by: FangyuanCheng --- src/portal/lib/src/tag/tag.component.html | 36 +++++++++++------------ src/portal/lib/src/tag/tag.component.scss | 20 ++----------- 2 files changed, 20 insertions(+), 36 deletions(-) diff --git a/src/portal/lib/src/tag/tag.component.html b/src/portal/lib/src/tag/tag.component.html index 5cb409976..10a450d54 100644 --- a/src/portal/lib/src/tag/tag.component.html +++ b/src/portal/lib/src/tag/tag.component.html @@ -78,29 +78,29 @@ - {{'REPOSITORY.TAG' | translate}} - {{'REPOSITORY.SIZE' | translate}} - {{'REPOSITORY.PULL_COMMAND' | translate}} - {{'REPOSITORY.VULNERABILITY' | translate}} - {{'REPOSITORY.SIGNED' | translate}} - {{'REPOSITORY.AUTHOR' | translate}} - {{'REPOSITORY.CREATED' | translate}} - {{'REPOSITORY.DOCKER_VERSION' | translate}} - {{'REPOSITORY.LABELS' | translate}} + {{'REPOSITORY.TAG' | translate}} + {{'REPOSITORY.SIZE' | translate}} + {{'REPOSITORY.PULL_COMMAND' | translate}} + {{'REPOSITORY.VULNERABILITY' | translate}} + {{'REPOSITORY.SIGNED' | translate}} + {{'REPOSITORY.AUTHOR' | translate}} + {{'REPOSITORY.CREATED' | translate}} + {{'REPOSITORY.DOCKER_VERSION' | translate}} + {{'REPOSITORY.LABELS' | translate}} {{'TAG.PLACEHOLDER' | translate }} - + {{t.name}} {{t.name}} - {{sizeTransform(t.size)}} - + {{sizeTransform(t.size)}} + - + - + @@ -108,10 +108,10 @@ {{'REPOSITORY.NOTARY_IS_UNDETERMINED' | translate}} - {{t.author}} - {{t.created | date: 'short'}} - {{t.docker_version}} - + {{t.author}} + {{t.created | date: 'short'}} + {{t.docker_version}} +
diff --git a/src/portal/lib/src/tag/tag.component.scss b/src/portal/lib/src/tag/tag.component.scss index b4e75260c..67da43d41 100644 --- a/src/portal/lib/src/tag/tag.component.scss +++ b/src/portal/lib/src/tag/tag.component.scss @@ -227,25 +227,9 @@ hbr-image-name-input { position: relative; } -.width-100 { - width: 100px; -} - -.width-130 { - width: 130px; -} - -.width-160 { - width: 160px; -} - .datagrid-top { - .flex-width { - min-width: 100px; - max-width: 220px; - } - .flex-min-width { - min-width: 130px; + .flex-max-width { + max-width: 220px } }