From 3bf2182e0b68e9c51e9a429e2806da3b81dea92f Mon Sep 17 00:00:00 2001 From: John Chilton Date: Sun, 1 Apr 2018 18:53:56 -0400 Subject: [PATCH] Improve styling, wording of rule editor buttons. - Replace "Okay" with "Apply" on button labels. - Create CSS style for buttons in rule editor part of the component. - More consistency - right-align all the buttons, more consistent spacing. - Make primary action that button blue to make the buttons look a little bland. --- .../components/RuleCollectionBuilder.vue | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/client/galaxy/scripts/components/RuleCollectionBuilder.vue b/client/galaxy/scripts/components/RuleCollectionBuilder.vue index b3d254e125ad..14723de361ff 100644 --- a/client/galaxy/scripts/components/RuleCollectionBuilder.vue +++ b/client/galaxy/scripts/components/RuleCollectionBuilder.vue @@ -194,20 +194,18 @@ -
-
- -
- + +
@@ -235,7 +233,7 @@ @remove="removeMapping(index)" @edit="displayRuleType = 'mapping'" v-on:mouseover.native="map.columns.forEach((col) => highlightColumn(col))" - v-on:mouseout.native="map.columns.forEach((col) =>unhighlightColumn(col))" + v-on:mouseout.native="map.columns.forEach((col) => unhighlightColumn(col))" :col-headers="colHeaders" />
One or more column definitions must be specified. These are required to specify how to build collections and datasets from rows and columns of the table. Click here to manage column definitions. @@ -677,11 +675,17 @@ const RuleComponent = { template: `
-
- - +
+ +
`, + data: function() { + return { + applyLabel: _l("Apply"), + cancelLabel: _l("Cancel"), + }; + }, props: { ruleType: { type: String, @@ -1534,6 +1538,10 @@ export default { display: flex; flex-direction: column; } + .rule-edit-buttons { + margin: 5px; + height: 25px; + } .rules { flex-grow: 1; overflow-y: scroll;