diff options
Diffstat (limited to 'polygerrit-ui/app/elements/settings/gr-watched-projects-editor/gr-watched-projects-editor.html')
-rw-r--r-- | polygerrit-ui/app/elements/settings/gr-watched-projects-editor/gr-watched-projects-editor.html | 42 |
1 files changed, 15 insertions, 27 deletions
diff --git a/polygerrit-ui/app/elements/settings/gr-watched-projects-editor/gr-watched-projects-editor.html b/polygerrit-ui/app/elements/settings/gr-watched-projects-editor/gr-watched-projects-editor.html index 61d35f6c34..cf5e0b187f 100644 --- a/polygerrit-ui/app/elements/settings/gr-watched-projects-editor/gr-watched-projects-editor.html +++ b/polygerrit-ui/app/elements/settings/gr-watched-projects-editor/gr-watched-projects-editor.html @@ -17,46 +17,35 @@ limitations under the License. <link rel="import" href="../../shared/gr-autocomplete/gr-autocomplete.html"> <link rel="import" href="../../shared/gr-button/gr-button.html"> <link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html"> -<link rel="import" href="../../../styles/gr-settings-styles.html"> +<link rel="import" href="../../../styles/gr-form-styles.html"> +<link rel="import" href="../../../styles/shared-styles.html"> <dom-module id="gr-watched-projects-editor"> <template> - <style> - th.projectHeader { - width: 11em; - } - th.notificationHeader { - text-align: center; - } - th.notifType { + <style include="shared-styles"></style> + <style include="gr-form-styles"> + #watchedProjects .notifType { text-align: center; padding: 0 0.4em; } - td.notifControl { + .notifControl { cursor: pointer; text-align: center; } - td.notifControl:hover { - border: 1px solid #ddd; + .notifControl:hover { + outline: 1px solid #ddd; } .projectFilter { color: #777; font-style: italic; margin-left: 1em; } - input { - font-size: 1em; - } - .newProjectInput { - width: 10em; - } .newFilterInput { - width: 26em; + width: 100%; } </style> - <style include="gr-settings-styles"></style> - <div class="gr-settings-styles"> - <table> + <div class="gr-form-styles"> + <table id="watchedProjects"> <thead> <tr> <th class="projectHeader">Project</th> @@ -92,8 +81,9 @@ limitations under the License. checked$="[[_computeCheckboxChecked(project, type.key)]]"> </td> </template> - <td class="delete-column"> + <td> <gr-button + link data-index$="[[projectIndex]]" on-tap="_handleRemoveProject">Delete</gr-button> </td> @@ -105,10 +95,8 @@ limitations under the License. <th> <gr-autocomplete id="newProject" - class="newProjectInput" - is="iron-input" query="[[_query]]" - threshold="3" + threshold="1" placeholder="Project"></gr-autocomplete> </th> <th colspan$="[[_getTypeCount()]]"> @@ -119,7 +107,7 @@ limitations under the License. placeholder="branch:name, or other search expression"> </th> <th> - <gr-button on-tap="_handleAddProject">Add</gr-button> + <gr-button link on-tap="_handleAddProject">Add</gr-button> </th> </tr> </tfoot> |