PolyGerrit: Update css in gr-project-detail-list to better present data
This is so that the max-width is applied in tags screen only.
Bug: Issue 7724
Change-Id: Id06f3fcb03b3a41681653ca3ea1af6643be84c6b
diff --git a/polygerrit-ui/app/elements/admin/gr-project-detail-list/gr-project-detail-list.html b/polygerrit-ui/app/elements/admin/gr-project-detail-list/gr-project-detail-list.html
index 0ed278a..23bc7f6 100644
--- a/polygerrit-ui/app/elements/admin/gr-project-detail-list/gr-project-detail-list.html
+++ b/polygerrit-ui/app/elements/admin/gr-project-detail-list/gr-project-detail-list.html
@@ -34,7 +34,15 @@
<template>
<style include="gr-form-styles"></style>
<style include="shared-styles">
- td.revision {
+ .tags td.name {
+ min-width: 25em;
+ }
+ td.name,
+ td.revision,
+ td.message {
+ word-break: break-word;
+ }
+ td.revision.tags {
width: 27em;
}
td.message,
@@ -48,7 +56,8 @@
.editing .editBtn,
.canEdit .revisionNoEditing,
.editing .revisionWithEditing,
- .revisionEdit {
+ .revisionEdit,
+ .hideItem {
display: none;
}
.revisionEdit gr-button {
@@ -65,9 +74,6 @@
.deleteButton:not(.show) {
display: none;
}
- .hideItem {
- display: none;
- }
.tagger.hide {
display: none;
}
@@ -100,8 +106,8 @@
<tbody class$="[[computeLoadingClass(_loading)]]">
<template is="dom-repeat" items="[[_shownItems]]">
<tr class="table">
- <td class="name">[[_stripRefs(item.ref, detailType)]]</td>
- <td class$="revision [[_computeCanEditClass(item.ref, detailType, _isOwner)]]">
+ <td class$="[[detailType]] name">[[_stripRefs(item.ref, detailType)]]</td>
+ <td class$="[[detailType]] revision [[_computeCanEditClass(item.ref, detailType, _isOwner)]]">
<span class="revisionNoEditing">
[[item.revision]]
</span>