Skip to content

Commit 9b80546

Browse files
committed
Fix design and auto-selection of file format type
1 parent 4e3e9a9 commit 9b80546

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

resources/scripts/components/elements/AceEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default ({ style, initialContent, initialModePath, fetchContent, onConten
117117
<div className={'m-3 rounded bg-neutral-900 border border-black'}>
118118
<select
119119
className={'input-dark'}
120-
defaultValue={mode}
120+
value={mode.split('/').pop()}
121121
onChange={e => setMode(`ace/mode/${e.currentTarget.value}`)}
122122
>
123123
{

resources/styles/components/forms.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,6 @@ select.input-dark:not(.appearance-none) {
119119
&:hover:not(:disabled), &:focus {
120120
@apply .border-neutral-400;
121121
}
122-
123-
/* fix for Firefox trying to be cool with dark colors */
124-
&:focus {
125-
@apply .bg-white .text-neutral-800;
126-
}
127122
}
128123

129124
.input-dark-label {

0 commit comments

Comments
 (0)