diff options
| author | Romain Estievenart <res@odoo.com> | 2018-11-06 08:10:49 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2019-01-31 11:30:54 +0000 |
| commit | 7d1dafa3e2a3cb88f5545128a2f258355fe08a14 (patch) | |
| tree | 689acd8761f7c3ef27e41ca53a296b7806c74b7f /addons/web/static/src/scss | |
| parent | 635944443cae9ade6dde98ba4668b1ee5b0b1d92 (diff) | |
[IMP] web: improve kanban mobile
Improve the mobile kanban when it's embedded in another view like
the Dashboard app
- Improve swipe: Allow to swipe on empty space
- When it's embedded :
- The Kanban column height now is fit to the content
- A empty space is now display if the Kanban column is empty
Task Id: 1904747
Diffstat (limited to 'addons/web/static/src/scss')
| -rw-r--r-- | addons/web/static/src/scss/kanban_view_mobile.scss | 10 | ||||
| -rw-r--r-- | addons/web/static/src/scss/primary_variables.scss | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/addons/web/static/src/scss/kanban_view_mobile.scss b/addons/web/static/src/scss/kanban_view_mobile.scss index b74ae8aaea5..53dc200f398 100644 --- a/addons/web/static/src/scss/kanban_view_mobile.scss +++ b/addons/web/static/src/scss/kanban_view_mobile.scss @@ -36,6 +36,16 @@ margin-left: 0; // override the margin-left: -1px of the desktop mode border: none; + &.o_current { + position: inherit; + top: 0; + + &.o_kanban_no_records { + // set a default height for clarity when embedded in another view + min-height: $o-kanban-mobile-empty-height; + } + } + .o_kanban_header { display: none; } diff --git a/addons/web/static/src/scss/primary_variables.scss b/addons/web/static/src/scss/primary_variables.scss index 2bdc03a132b..5196805625d 100644 --- a/addons/web/static/src/scss/primary_variables.scss +++ b/addons/web/static/src/scss/primary_variables.scss @@ -106,7 +106,7 @@ $o-kanban-inner-hmargin: 5px; $o-kanban-progressbar-height: 20px; $o-kanban-mobile-tabs-height: 40px; - +$o-kanban-mobile-empty-height: $o-kanban-image-width; // ------- Kanban dashboard variables ------- // Used to manage spacing in complex dropdown menu |
