Skip to content

Commit dd48f1d

Browse files
committed
fix dropdown indentation.
1 parent cb79b68 commit dd48f1d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/ui/dialogs/settings.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,9 @@ const Settings = () => {
482482
<li>
483483
<ul>
484484
<h2 style={{ marginLeft: '1em' }}>
485-
{tl('animatedJava.settings.exporterSettings')}
485+
{tl(
486+
'animatedJava.settings.exporterSettings'
487+
)}
486488
</h2>
487489
{Object.keys(DefaultSettings)
488490
.filter((key) => key !== 'animatedJava')
@@ -550,6 +552,7 @@ function SettingsPanel({ childrenSettings, name, visible, id }) {
550552
[child.name]: !childShown[child.name],
551553
})
552554
}}
555+
dontIndent={true}
553556
>
554557
<ul style={{ marginLeft: '2em' }}>
555558
{child.settings.map((setting) => (
@@ -578,14 +581,15 @@ function SettingsPanel({ childrenSettings, name, visible, id }) {
578581
</DropDown>
579582
)
580583
}
581-
function DropDown({ children, onClick, visible, name, intl }) {
584+
function DropDown({ children, onClick, visible, name, intl, dontIndent }) {
582585
return (
583586
<>
584587
<h3
585588
onClick={onClick}
586589
style={{
587590
display: 'flex',
588-
alignItems: 'center'
591+
alignItems: 'center',
592+
marginLeft: dontIndent ? 0 : undefined,
589593
}}
590594
>
591595
<i className="material-icons">

0 commit comments

Comments
 (0)