Skip to content

Commit e55fe68

Browse files
authored
Hide prev/next entry control on mobile (#1367)
This hides the prev/next entry control for mobile devices, since there isn't enough room in the button bar to show this control without wrapping to a second line. Commits: * add dc-rendered-on-desktop class to hide button bar on mobile * refactored css class dc-rendered-on-desktop to hide-on-mobile
1 parent 52e9fa7 commit e55fe68

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/angular-app/languageforge/lexicon/editor/editor.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<span class="d-none d-md-inline-block">List</span></a>
1212
</div>
1313
<div class="float-right" data-ng-show="$ctrl.isAtEditorEntry()">
14-
<div class="btn-group" ng-form="validateGoto" ng-hide="$ctrl.entryListModifiers.filterActive()">
14+
<div class="btn-group hide-on-mobile" ng-form="validateGoto" ng-hide="$ctrl.entryListModifiers.filterActive()">
1515
<button class="btn btn-std" data-ng-click="$ctrl.skipToEntry(-1)" ng-disabled="!$ctrl.canSkipToEntry(-1)">
1616
<span class="fa fa-arrow-left"></span> <span class="d-none d-lg-inline-block">Previous</span>
1717
</button>
@@ -43,7 +43,7 @@
4343
</div>
4444
</div>
4545
</div>
46-
<div class="row dc-rendered-on-desktop" data-ng-if="$ctrl.isAtEditorEntry()">
46+
<div class="row hide-on-mobile" data-ng-if="$ctrl.isAtEditorEntry()">
4747
<div class="col">
4848
<div class="word-definition-title">
4949
<dc-rendered config="$ctrl.lecConfig.entry" global-config="$ctrl.lecConfig"

src/angular-app/languageforge/lexicon/editor/field/_dc-rendered.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
}
2828
@include media-breakpoint-down(sm) {
29-
.dc-rendered-on-desktop {
29+
.hide-on-mobile {
3030
display: none;
3131
}
3232
}

0 commit comments

Comments
 (0)