From 90b74b32e619f8225964df4cd27f5d1175907ced 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 515aeb48be30..be171e093698 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, @@ -1530,6 +1534,10 @@ export default { display: flex; flex-direction: column; } + .rule-edit-buttons { + margin: 5px; + height: 25px; + } .rules { flex-grow: 1; overflow-y: scroll;