drag for mobile - handle sizeable

This commit is contained in:
2026-07-01 10:30:07 -03:00
parent 4e48e33b26
commit 924e287aee
7 changed files with 46 additions and 4 deletions

View File

@@ -27,6 +27,14 @@
</p>
</fieldset>
<fieldset>
<?= $this->form->label(t('Mobile drag handle size in pixels'), 'tweakdrag_handle_size') ?>
<?= $this->form->number('tweakdrag_handle_size', $values, $errors) ?>
<p class="form-help">
<?= t('Size of the card drag handle that Kanboard shows on mobile, so it is easy to grab with a finger. No effect on desktop. Default: 20.') ?>
</p>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
</div>

View File

@@ -1,6 +1,7 @@
<style type="text/css">
:root {
--td-column-gap: <?= (int) $this->app->config('tweakdrag_column_gap_size', 25) ?>px;
--td-handle-size: <?= (int) $this->app->config('tweakdrag_handle_size', 20) ?>px;
}
<?php if ((int) $this->app->config('tweakdrag_column_gap', 1) === 1): ?>
#board { border-collapse: separate !important; border-spacing: var(--td-column-gap, 25px) 0 !important; }