Skip to content

Commit 7e7eb62

Browse files
committed
Update console-sheet.js
1 parent a99e23b commit 7e7eb62

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

live-view/extensions/mobile-console/console-sheet.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,22 @@ class ConsoleSheet {
125125
// if the log has an icon, remove it
126126
if (logIcon) logIcon.remove();
127127

128+
129+
// fix Safari not updating the data's margin-left
130+
if (isSafari) {
131+
132+
const data = dataWrapper.querySelector('.data');
133+
134+
data.style.outline = 'none';
135+
136+
onNextFrame(() => {
137+
138+
data.style.outline = '';
139+
140+
});
141+
142+
}
143+
128144
}
129145

130146
// return so we won't add the new log

0 commit comments

Comments
 (0)