summaryrefslogtreecommitdiffstats
path: root/polygerrit-ui/app/elements/settings/gr-menu-editor/gr-menu-editor.html
diff options
context:
space:
mode:
Diffstat (limited to 'polygerrit-ui/app/elements/settings/gr-menu-editor/gr-menu-editor.html')
-rw-r--r--polygerrit-ui/app/elements/settings/gr-menu-editor/gr-menu-editor.html40
1 files changed, 22 insertions, 18 deletions
diff --git a/polygerrit-ui/app/elements/settings/gr-menu-editor/gr-menu-editor.html b/polygerrit-ui/app/elements/settings/gr-menu-editor/gr-menu-editor.html
index e603e8c0fa..6805885b12 100644
--- a/polygerrit-ui/app/elements/settings/gr-menu-editor/gr-menu-editor.html
+++ b/polygerrit-ui/app/elements/settings/gr-menu-editor/gr-menu-editor.html
@@ -19,31 +19,32 @@ limitations under the License.
<link rel="import" href="../../shared/gr-button/gr-button.html">
<link rel="import" href="../../shared/gr-date-formatter/gr-date-formatter.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/shared-styles.html">
+<link rel="import" href="../../../styles/gr-form-styles.html">
<dom-module id="gr-menu-editor">
<template>
- <style>
- th.nameHeader {
- width: 11em;
+ <style include="shared-styles">
+ .buttonColumn {
+ width: 2em;
+ }
+ .moveUpButton,
+ .moveDownButton {
+ width: 100%
}
- tbody tr:first-of-type td .move-up-button,
- tbody tr:last-of-type td .move-down-button {
+ tbody tr:first-of-type td .moveUpButton,
+ tbody tr:last-of-type td .moveDownButton {
display: none;
}
td.urlCell {
word-break: break-word;
}
- .newTitleInput {
- width: 10em;
- }
.newUrlInput {
- width: 23em;
+ min-width: 23em;
}
</style>
- <style include="gr-settings-styles"></style>
- <div class="gr-settings-styles">
+ <style include="gr-form-styles"></style>
+ <div class="gr-form-styles">
<table>
<thead>
<tr>
@@ -56,20 +57,23 @@ limitations under the License.
<tr>
<td>[[item.name]]</td>
<td class="urlCell">[[item.url]]</td>
- <td>
+ <td class="buttonColumn">
<gr-button
+ link
data-index="[[index]]"
on-tap="_handleMoveUpButton"
- class="move-up-button">↑</gr-button>
+ class="moveUpButton">↑</gr-button>
</td>
- <td>
+ <td class="buttonColumn">
<gr-button
+ link
data-index="[[index]]"
on-tap="_handleMoveDownButton"
- class="move-down-button">↓</gr-button>
+ class="moveDownButton">↓</gr-button>
</td>
<td>
<gr-button
+ link
data-index="[[index]]"
on-tap="_handleDeleteButton"
class="remove-button">Delete</gr-button>
@@ -81,7 +85,6 @@ limitations under the License.
<tr>
<th>
<input
- class="newTitleInput"
is="iron-input"
placeholder="New Title"
on-keydown="_handleInputKeydown"
@@ -99,6 +102,7 @@ limitations under the License.
<th></th>
<th>
<gr-button
+ link
disabled$="[[_computeAddDisabled(_newName, _newUrl)]]"
on-tap="_handleAddButton">Add</gr-button>
</th>