Skip to content

Commit 6ed1832

Browse files
ACP2E-2083: Login as customer from admin in mobile/tablet devices is inaccessible - fix
1 parent 2abc466 commit 6ed1832

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

app/code/Magento/Theme/view/adminhtml/page_layout/admin-2columns-left.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<container name="page.content" as="page_content" htmlTag="main" htmlId="anchor-content" htmlClass="page-content">
2727
<container name="main.top" as="main-top" label="main-top"/>
28-
<container name="page.main.actions" as="page_main_actions" htmlTag="div" htmlClass="page-main-actions"/>
28+
<container name="page.main.actions" as="page_main_actions" htmlTag="div" htmlClass="page-main-actions actions-scrollable"/>
2929
<container name="messages.wrapper" as="messages.wrapper" htmlTag="div" htmlId="messages">
3030
<container name="page.messages" as="page.messages"/>
3131
</container>

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/main/_actions-bar.less

+15-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Main elements -> Actions bar
88
// _____________________________________________
99

10-
// ToDo UI: Consist old styles, should be changed with new design
10+
// ToDo UI -> Consist old styles, should be changed with new design
1111

1212
//
1313
// Components
@@ -24,7 +24,15 @@
2424
padding: @page-main-actions__padding;
2525
}
2626

27+
.actions-scrollable {
28+
.page-actions {
29+
display: flex;
30+
overflow-x: auto;
31+
}
32+
}
33+
2734
.page-main-actions {
35+
display: flex;
2836
margin: 0 0 @indent__l;
2937

3038
&._hidden {
@@ -44,6 +52,8 @@
4452

4553
.page-actions {
4654
@_page-action__indent: 1.3rem;
55+
margin-left: auto;
56+
order: 2;
4757

4858
&.floating-header {
4959
&:extend(.page-actions-buttons all);
@@ -86,7 +96,7 @@
8696

8797
&.back,
8898
&.action-back {
89-
// ToDo UI: Should be changed to ._back
99+
// ToDo UI -> Should be changed to ._back
90100
float: left;
91101
.lib-vendor-prefix-order(-1);
92102

@@ -101,7 +111,7 @@
101111

102112
&.action-primary,
103113
&.primary {
104-
// ToDo UI: Should be changed to .action-primary
114+
// ToDo UI -> Should be changed to .action-primary
105115
&:extend(.abs-action-primary all);
106116
&:extend(.abs-action-l all);
107117
.lib-vendor-prefix-order(2);
@@ -113,14 +123,14 @@
113123
}
114124

115125
&.save {
116-
// ToDo UI: Should be changed to ._save
126+
// ToDo UI -> Should be changed to ._save
117127
&:not(.primary) {
118128
.lib-vendor-prefix-order(1);
119129
}
120130
}
121131

122132
&.delete {
123-
// ToDo UI: Should be changed to ._delete
133+
// ToDo UI -> Should be changed to ._delete
124134
.lib-vendor-prefix-order(-1);
125135
}
126136
}

0 commit comments

Comments
 (0)