Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Make all views fullscreen
dominik-zeglen94224e419a07
diff --git a/saleor/static/dashboard/js/components/filters.js b/saleor/static/dashboard/js/components/filters.jsindex 31c73d9582..d58f5000c3 100644--- a/saleor/static/dashboard/js/components/filters.js+++ b/saleor/static/dashboard/js/components/filters.js@@ -24,7 +24,7 @@ const moveFilters = () => {export default $(document).ready(() => {$list = $filters.prev();- if ($('.body-filters').length) {+ if ($filters.length) {moveFilters();$(window).on('resize', moveFilters);}diff --git a/saleor/static/dashboard/scss/components/_card-collapse.scss b/saleor/static/dashboard/scss/components/_card-collapse.scssnew file mode 100644index 0000000000..40ac4fcaea--- /dev/null+++ b/saleor/static/dashboard/scss/components/_card-collapse.scss@@ -0,0 +1,19 @@+.collapse {+ overflow: hidden;+ max-height: 1000px;+ transition: $transition-duration;+ &.collapsed {+ max-height: 0;+ }+}++.collapse-activate {+ position: absolute;+ top: 21px;+ right: 20px;+ svg {+ width: 24px;+ height: 24px;+ fill: $grey-color;+ }+}diff --git a/saleor/static/dashboard/scss/components/_global.scss b/saleor/static/dashboard/scss/components/_global.scssindex b28470711e..a0a9d5b429 100644--- a/saleor/static/dashboard/scss/components/_global.scss+++ b/saleor/static/dashboard/scss/components/_global.scss@@ -157,22 +157,9 @@ svg {}}-.collapse {- overflow: hidden;- max-height: 1000px;- transition: $transition-duration;- &.collapsed {- max-height: 0;- }-}--.collapse-activate {- position: absolute;- top: 21px;- right: 20px;- svg {- width: 24px;- height: 24px;- fill: $grey-color;+.chips-container {+ margin-top: 18px;+ a {+ color: #999;}}diff --git a/saleor/static/dashboard/scss/components/_nav.scss b/saleor/static/dashboard/scss/components/_nav.scssindex 184767cdd5..5c2bfb3370 100644--- a/saleor/static/dashboard/scss/components/_nav.scss+++ b/saleor/static/dashboard/scss/components/_nav.scss@@ -197,8 +197,8 @@ header {.main {.container {margin: 40px 40px 0;- max-width: 1200px;width: auto;+ max-width: none;transition: margin .1s;@media (max-width: $small-screen) {margin: 15px 15px 0;@@ -232,7 +232,7 @@ body.nav-toggled {margin-left: 270px;}@media (min-width: $large-screen) {- margin: 40px auto;+ margin: 40px;}}}diff --git a/saleor/static/dashboard/scss/dashboard.scss b/saleor/static/dashboard/scss/dashboard.scssindex c7a8629818..1eebc37773 100644--- a/saleor/static/dashboard/scss/dashboard.scss+++ b/saleor/static/dashboard/scss/dashboard.scss@@ -7,6 +7,7 @@@import "components/global";@import "components/breadcrumbs";@import "components/buttons";+@import "components/card-collapse";@import "components/data-table";@import "components/dropzone";@import "components/form";@@ -22,6 +23,5 @@@import "components/tabs";@import "components/timeline";-@import "layouts/filters";@import "layouts/style-guide";@import "print";diff --git a/saleor/static/dashboard/scss/layouts/_filters.scss b/saleor/static/dashboard/scss/layouts/_filters.scssdeleted file mode 100644index e54090beaf..0000000000--- a/saleor/static/dashboard/scss/layouts/_filters.scss+++ /dev/null@@ -1,25 +0,0 @@-@media (min-width: $large-screen) {- .body-filters {- &.nav-toggled {- .main {- .container {- margin: 40px 20px;- }- }- }- .main {- .container {- width: auto;- max-width: none;- margin: 40px 20px 0 270px;- }- }- }-}--.chips-container {- margin-top: 18px;- a {- color: #999;- }-}diff --git a/templates/dashboard/customer/list.html b/templates/dashboard/customer/list.htmlindex 32db5874b9..b0ccf6fcbb 100644--- a/templates/dashboard/customer/list.html+++ b/templates/dashboard/customer/list.html@@ -9,7 +9,7 @@{% trans "Customers" context "Dashboard customers list" %} - {{ block.super }}{% endblock %}-{% block body_class %}body-customers body-filters{% endblock %}+{% block body_class %}body-customers{% endblock %}{% block menu_customers_class %}active{% endblock %}diff --git a/templates/dashboard/discount/sale/list.html b/templates/dashboard/discount/sale/list.htmlindex 83f0d65a98..81621f1f89 100644--- a/templates/dashboard/discount/sale/list.html+++ b/templates/dashboard/discount/sale/list.html@@ -11,7 +11,7 @@{% trans "Sales" %} - {{ block.super }}{% endblock %}-{% block body_class %}body-sales body-filters{% endblock %}+{% block body_class %}body-sales{% endblock %}{% block menu_sales_class %}active{% endblock %}diff --git a/templates/dashboard/discount/voucher/list.html b/templates/dashboard/discount/voucher/list.htmlindex 0d9dab20be..b39dfabaf7 100644--- a/templates/dashboard/discount/voucher/list.html+++ b/templates/dashboard/discount/voucher/list.html@@ -10,7 +10,7 @@{% trans "Vouchers" context "Dashboard vouchers list" %} - {{ block.super }}{% endblock %}-{% block body_class %}body-vouchers body-filters{% endblock %}+{% block body_class %}body-vouchers{% endblock %}{% block menu_vouchers_class %}active{% endblock %}diff --git a/templates/dashboard/order/list.html b/templates/dashboard/order/list.htmlindex de2a0ca36e..7666346632 100644--- a/templates/dashboard/order/list.html+++ b/templates/dashboard/order/list.html@@ -6,7 +6,7 @@{% block title %}{% trans "Orders" context "Dashboard orders list" %} - {{ block.super }}{% endblock %}-{% block body_class %}body-orders body-filters{% endblock %}+{% block body_class %}body-orders{% endblock %}{% block menu_orders_class %}active{% endblock %}diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.htmlindex 0c554245f5..7e57350a42 100644--- a/templates/dashboard/product/list.html+++ b/templates/dashboard/product/list.html@@ -11,7 +11,7 @@{% trans "Products" context "Dashboard products list" %} - {{ block.super }}{% endblock %}-{% block body_class %}body-products-list body-filters{% endblock %}+{% block body_class %}body-products-list{% endblock %}{% block menu_products_class %}active{% endblock %}diff --git a/templates/dashboard/staff/list.html b/templates/dashboard/staff/list.htmlindex 9ade089d9c..4072e1bc8b 100644--- a/templates/dashboard/staff/list.html+++ b/templates/dashboard/staff/list.html@@ -10,7 +10,7 @@{% trans "Staff" context "Dashboard staff members list" %} - {{ block.super }}{% endblock %}-{% block body_class %}body-customers body-filters{% endblock %}+{% block body_class %}body-customers{% endblock %}{% block menu_staff_class %}active{% endblock %}