diff --git a/initdb.py b/initdb.py index 36ce9f672..c473f073e 100644 --- a/initdb.py +++ b/initdb.py @@ -510,6 +510,7 @@ def populate_database(minimal=False, with_storage=False): first_label = model.label.create_manifest_label(tag_manifest, 'foo', 'bar', 'manifest') model.label.create_manifest_label(tag_manifest, 'foo', 'baz', 'api') model.label.create_manifest_label(tag_manifest, 'anotherlabel', '1234', 'internal') + model.label.create_manifest_label(tag_manifest, 'jsonlabel', '{"hey": "there"}', 'internal') label_metadata = { 'key': 'foo', diff --git a/static/css/directives/repo-view/repo-panel-tags.css b/static/css/directives/repo-view/repo-panel-tags.css index 446c35d85..2cb46c156 100644 --- a/static/css/directives/repo-view/repo-panel-tags.css +++ b/static/css/directives/repo-view/repo-panel-tags.css @@ -127,11 +127,12 @@ color: black; } -.arepo-panel-tags-element .tag-span { - overflow: hidden; - text-overflow: ellipsis; - max-width: 250px; - display: inline-block; +.repo-panel-tags-element tr.expanded-view td { + border-bottom: 0px; +} + +.repo-panel-tags-element .labels-col { + padding-top: 0px; } @media (max-width: 1000px) { diff --git a/static/css/directives/ui/label-list.css b/static/css/directives/ui/label-list.css new file mode 100644 index 000000000..53f874146 --- /dev/null +++ b/static/css/directives/ui/label-list.css @@ -0,0 +1,9 @@ +.label-list-element .label-view { + margin-right: 6px; + margin-bottom: 4px; +} + +.label-list-element .empty-list { + font-size: 12px; + color: #ccc; +} \ No newline at end of file diff --git a/static/css/directives/ui/label-view.css b/static/css/directives/ui/label-view.css new file mode 100644 index 000000000..c9c3a5cff --- /dev/null +++ b/static/css/directives/ui/label-view.css @@ -0,0 +1,25 @@ +.label-view-element { + display: inline-block; + padding: 1px; + border-radius: 9px; + background-color: #eee; + padding-left: 8px; + padding-right: 8px; + font-size: 12px; + cursor: default; +} + +.label-view-element .kind { + text-transform: uppercase; + font-size: 8px; + color: #aaa; + margin-right: 2px; + position: relative; + top: -1px; +} + +.label-view-element .value { + max-width: 100px; + overflow: hidden; + text-overflow: ellipsis; +} diff --git a/static/css/directives/ui/manifest-label-list.css b/static/css/directives/ui/manifest-label-list.css new file mode 100644 index 000000000..840f1b737 --- /dev/null +++ b/static/css/directives/ui/manifest-label-list.css @@ -0,0 +1,8 @@ +.manifest-label-list-element { + padding-left: 6px; +} + +.manifest-label-list-element .none { + font-size: 12px; + color: #ccc; +} \ No newline at end of file diff --git a/static/directives/label-list.html b/static/directives/label-list.html new file mode 100644 index 000000000..8f2d82f3e --- /dev/null +++ b/static/directives/label-list.html @@ -0,0 +1,10 @@ +