mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 20:58:48 +01:00
Fix Can't Scroll on All Boards on mobile phone. Added drag handles.
Thanks to xet7 ! Fixes #3096
This commit is contained in:
parent
4879df0244
commit
98e255ccec
3 changed files with 26 additions and 0 deletions
|
|
@ -31,6 +31,10 @@ template(name="boardList")
|
||||||
i.fa.js-has-spenttime-cards(
|
i.fa.js-has-spenttime-cards(
|
||||||
class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
|
class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
|
||||||
title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
|
title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
|
||||||
|
if isMiniScreen
|
||||||
|
i.fa.board-handle(
|
||||||
|
class="fa-arrows"
|
||||||
|
title="{{_ 'Drag board'}}")
|
||||||
unless isMiniScreen
|
unless isMiniScreen
|
||||||
if isSandstorm
|
if isSandstorm
|
||||||
i.fa.js-clone-board(
|
i.fa.js-clone-board(
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,12 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
// Disable drag-dropping if the current user is not a board member or is comment only
|
// Disable drag-dropping if the current user is not a board member or is comment only
|
||||||
this.autorun(() => {
|
this.autorun(() => {
|
||||||
|
if (Utils.isMiniScreen()) {
|
||||||
|
$boards.sortable({
|
||||||
|
handle: '.board-handle',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$boards.sortable('option', 'disabled', !userIsAllowedToMove());
|
$boards.sortable('option', 'disabled', !userIsAllowedToMove());
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -208,6 +208,22 @@ $spaceBetweenTiles = 16px
|
||||||
top: -100px
|
top: -100px
|
||||||
left: -100px
|
left: -100px
|
||||||
|
|
||||||
|
.board-handle
|
||||||
|
position: absolute
|
||||||
|
padding: 7px
|
||||||
|
top: 50%
|
||||||
|
transform: translateY(-50%)
|
||||||
|
right: 10px
|
||||||
|
font-size: 24px
|
||||||
|
|
||||||
@media screen and (max-width: 360px)
|
@media screen and (max-width: 360px)
|
||||||
li
|
li
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
|
.board-handle
|
||||||
|
position: absolute
|
||||||
|
padding: 7px
|
||||||
|
top: 50%
|
||||||
|
transform: translateY(-50%)
|
||||||
|
right: 10px
|
||||||
|
font-size: 24px
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue