Skip to content

Commit af1e7f8

Browse files
authored
Merge pull request #565 from Necromantian/bugfix/371-misplaced-icon-for-note-editor
#371 fixing styles + moving note-editor icon
2 parents db59726 + d84079d commit af1e7f8

File tree

6 files changed

+27
-21
lines changed

6 files changed

+27
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ All notable changes to AET will be documented in this file.
1111

1212
**List of changes that are finished but not yet released in any final version.**
1313

14+
- [PR-565](https://github.com/Cognifide/aet/pull/565) Fixing styles of note-editor icon ([#371](https://github.com/Cognifide/aet/issues/371))
1415
- [PR-567](https://github.com/Cognifide/aet/pull/567) Added missing tooltips in the report - "Previous url" and "Next url" ([#566](https://github.com/Cognifide/aet/issues/566))
1516
- [PR-563](https://github.com/Cognifide/aet/pull/563) Fixed bug with tooltips for "Re-run" buttons. ([#476](https://github.com/Cognifide/aet/issues/476))
1617
- [PR-522](https://github.com/Cognifide/aet/pull/522) Improve performance of generating /configs/list. ([#519](https://github.com/Cognifide/aet/issues/519))

report/src/main/webapp/app/layout/main/url/navigation/navigation.patternButtons.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
limitations under the License.
1818
1919
-->
20-
<div class="toolbar-btns pull-right" data-ng-if=" case.usesCrossSuitePattern ">
20+
<div class="toolbar-button pull-right" data-ng-if=" case.usesCrossSuitePattern ">
2121
<div class="button button-small button-dark button-disabled"
2222
ng-if="case.showAcceptButton"
2323
data-aet-included-comment-popover
@@ -29,7 +29,7 @@
2929
Accept test case
3030
</div>
3131
</div>
32-
<div class="toolbar-btns pull-right" data-ng-if=" !case.usesCrossSuitePattern ">
32+
<div class="toolbar-button pull-right" data-ng-if=" !case.usesCrossSuitePattern ">
3333
<div id="accept-test-case" class="button button-small js-test-rebase button-blue" ng-click="urlView.acceptCase(case)"
3434
ng-if="case.showAcceptButton">
3535
<i class="icon icon-rebase"></i>

report/src/main/webapp/app/layout/main/url/reports/screen_layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
<div class="advanced-screen-comparison button button-small button-blue">
3535
<a ng-if="case.status == 'FAILED' || case.status == 'CONDITIONALLY_PASSED'" data-ng-click="advancedScreenComparison()" data-aet-compare-screens>Advanced Screen Comparison</a>
3636
</div>
37-
<ng-include src="'app/layout/main/url/navigation/navigation.comments.html'"/>
3837
<ng-include src="'app/layout/main/url/navigation/navigation.patternButtons.html'"/>
38+
<ng-include src="'app/layout/main/url/navigation/navigation.comments.html'"/>
3939
</div>
4040
</div>
4141
</div>

report/src/main/webapp/app/layout/toolbar/toolbarBottom.view.html

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,6 @@ <h5 ng-if="toolbarBottom.viewMode == 'url'">
116116
</div>
117117
</a>
118118
</div>
119-
<span class="comments-status pull-left"
120-
data-toggle="popover"
121-
data-ng-class="toolbarBottom.model.comment ? 'present' : 'absent'"
122-
data-content="{{toolbarBottom.model.comment && '<span>' + toolbarBottom.model.comment + '</span>' || !toolbarBottom.model.comment && '<span>Click to update this ' + toolbarBottom.viewMode + ' note</span>'}}"
123-
data-html="true" data-trigger="hover"
124-
data-ng-click="toolbarBottom.displayCommentModal()">
125-
<div ng-if="toolbarBottom.model.comment">
126-
<i class="fas fa-ellipsis-h" data-fa-transform="shrink-10 up-.5" data-fa-mask="fas fa-comment"></i>
127-
</div>
128-
<div ng-if="!toolbarBottom.model.comment">
129-
<i class="fas fa-pencil-alt" data-fa-transform="shrink-10 up-.5" data-fa-mask="fas fa-comment"></i>
130-
</div>
131-
</span>
132119

133120
<span class="button button-dark button-disabled"
134121
data-ng-if="toolbarBottom.usesCrossSuitePattern"
@@ -152,6 +139,20 @@ <h5 ng-if="toolbarBottom.viewMode == 'url'">
152139
<i class="fas {{theme.statusClasses['unrebased']}}"></i>
153140
Revert {{toolbarBottom.viewMode}}
154141
</span>
142+
143+
<span class="comments-status pull-left"
144+
data-toggle="popover"
145+
data-ng-class="toolbarBottom.model.comment ? 'present' : 'absent'"
146+
data-content="{{toolbarBottom.model.comment && '<span>' + toolbarBottom.model.comment + '</span>' || !toolbarBottom.model.comment && '<span>Click to update this ' + toolbarBottom.viewMode + ' note</span>'}}"
147+
data-html="true" data-trigger="hover"
148+
data-ng-click="toolbarBottom.displayCommentModal()">
149+
<div ng-if="toolbarBottom.model.comment">
150+
<i class="fas fa-ellipsis-h" data-fa-transform="shrink-10 up-.5" data-fa-mask="fas fa-comment"></i>
151+
</div>
152+
<div ng-if="!toolbarBottom.model.comment">
153+
<i class="fas fa-pencil-alt" data-fa-transform="shrink-10 up-.5" data-fa-mask="fas fa-comment"></i>
154+
</div>
155+
</span>
155156
</div>
156157
</div>
157158
</div>

report/src/main/webapp/assets/sass/_test.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
color: #77777c;
4040
font-size: 11px;
4141
display: inline-block;
42-
padding: 0 20px;
42+
padding-right: 20px;
4343
line-height: 31px;
4444
margin: 8px 0;
4545
vertical-align: middle;
@@ -53,7 +53,7 @@
5353
margin: 0;
5454
height: 20px;
5555
vertical-align: middle;
56-
56+
5757
.checkbox {
5858
display: inline-block;
5959
margin: 0;

report/src/main/webapp/assets/sass/_toolbar.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,11 @@
216216

217217
.button {
218218
float: left;
219-
margin-left: 15px;
219+
margin-right: 15px;
220220
}
221221

222222
.tab-content-toolbar & {
223223
padding-top: 3px;
224-
padding-right: 15px;
225224
height: 47px;
226225
}
227226
}
@@ -233,7 +232,7 @@
233232
display: block;
234233
line-height: 44px;
235234
cursor: pointer;
236-
margin-right: 10px;
235+
margin: -3px 0 0 10px;
237236

238237
&.small {
239238
line-height: 37px;
@@ -250,6 +249,7 @@
250249
}
251250

252251
.tab-content-toolbar {
252+
padding: 0 20px;
253253

254254
@media (max-width: 1300px) {
255255
height: 94px;
@@ -262,6 +262,10 @@
262262
.toolbar-blocks {
263263
display: inline;
264264
}
265+
266+
.toolbar-button {
267+
margin-top: 3px;
268+
}
265269
}
266270

267271
.set-initial-font-size {

0 commit comments

Comments
 (0)