Skip to content

Commit c89b469

Browse files
committed
Fix message overlapping buttons
Fixes codesandbox#1673
1 parent 43cec9c commit c89b469

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

packages/app/src/app/components/CodeEditor/elements.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export const Icons = styled.div`
1111
props.theme.light ? 'rgba(0, 0, 0, 0.7)' : 'rgba(255, 255, 255, 0.7)'};
1212
padding: 0.5rem 1rem;
1313
z-index: 40;
14+
15+
font-size: 0.875rem;
16+
margin-top: 35px;
1417
`;
1518

1619
export const Icon = styled.div`

packages/app/src/app/components/CodeEditor/index.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export default class CodeEditor extends React.PureComponent<
187187
>
188188
{!isModuleSynced(module.shortid) &&
189189
module.title === 'index.html' && (
190-
<Icons style={{ fontSize: '.875rem' }}>
190+
<Icons>
191191
You may have to save this file and refresh the preview to see
192192
changes
193193
</Icons>
@@ -202,12 +202,7 @@ export default class CodeEditor extends React.PureComponent<
202202
</Tooltip>
203203
</Icons>
204204
) : (
205-
<Icons
206-
style={{
207-
fontSize: '.875rem',
208-
marginTop: settings.experimentVSCode ? 35 : 0,
209-
}}
210-
>
205+
<Icons>
211206
{config.partialSupportDisclaimer ? (
212207
<Tooltip
213208
placement="bottom"

0 commit comments

Comments
 (0)