Skip to content

Commit 0ae8940

Browse files
author
Olga Lytvynenko
committed
MAGETWO-41995: Template structure of Admin area is broken when Translate Inline mode is enabled
1 parent 964f540 commit 0ae8940

File tree

3 files changed

+35
-27
lines changed

3 files changed

+35
-27
lines changed

app/code/Magento/Translation/view/adminhtml/templates/translate_inline.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<script id="translate-form-template" type="text/x-magento-template">
1818
<form id="<%- data.id %>">
1919
<% _.each(data.items, function(item, i) { %>
20-
<div class="magento_table_container">
20+
<div class="translate-table-container">
2121
<table class="table">
2222
<% _.each(item, function(value, index) { %>
2323
<tr>

app/code/Magento/Translation/view/frontend/templates/translate_inline.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<script id="translate-form-template" type="text/x-magento-template">
1919
<form id="<%- data.id %>">
2020
<% _.each(data.items, function(item, i) { %>
21-
<div class="magento_table_container">
21+
<div class="translate-table-container">
2222
<table cellspacing="0" class="table">
2323
<% _.each(item, function(value, index) { %>
2424
<tr>

lib/web/mage/translate-inline.css

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,53 @@
55

66
.trnslate-inline-area [data-translate],
77
.trnslate-inline-area .translate-inline {
8-
outline: dotted 1px red!important;
8+
outline: dotted 1px red !important;
99
}
10+
1011
* html .translate-inline,
11-
*+html .translate-inline{
12-
border: dotted 1px red !important;
12+
* + html .translate-inline {
13+
border: dotted 1px red !important;
1314
}
14-
.translate-inline-script, .translate-inline-title {
15-
background: yellow;
16-
color: black;
17-
font-weight: bold;
15+
16+
.translate-inline-script,
17+
.translate-inline-title {
18+
background: yellow;
19+
color: black;
20+
font-weight: bold;
1821
}
22+
1923
#translate-inline-trig {
20-
position: absolute;
21-
left: -1000px;
22-
opacity: .8;
23-
filter: alpha(opacity=80);
24-
cursor: pointer;
25-
margin-top: 10px;
26-
z-index: 2000;
24+
cursor: pointer;
25+
filter: alpha(opacity=80);
26+
left: -1000px;
27+
margin-top: 10px;
28+
opacity: .8;
29+
position: absolute;
30+
z-index: 2000;
2731
}
2832

2933
.data.table.translate table {
30-
width: 100%;
34+
width: 100%;
3135
}
36+
3237
.data.table.translate td {
33-
background: none;
34-
padding: 5px 5px 5px 0;
35-
text-align: left;
38+
background: none;
39+
padding: 5px 5px 5px 0;
40+
text-align: left;
3641
}
42+
3743
.data.table.translate th.label {
38-
border: none;
39-
font-weight: bold;
40-
text-align: left;
41-
padding: 5px 5px 5px 0;
42-
width: 150px;
44+
border: none;
45+
font-weight: bold;
46+
padding: 5px 5px 5px 0;
47+
text-align: left;
48+
width: 150px;
4349
}
50+
4451
.data.table.translate td.value .input-text {
45-
width: 98%;
52+
width: 98%;
4653
}
54+
4755
p.accent {
48-
color: #d12c01;
56+
color: #d12c01;
4957
}

0 commit comments

Comments
 (0)