Fix design and auto-selection of file format type

This commit is contained in:
Dane Everitt 2019-12-07 12:16:35 -08:00
parent 4e3e9a95e4
commit 9b80546c0c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 1 additions and 6 deletions

View file

@ -117,7 +117,7 @@ export default ({ style, initialContent, initialModePath, fetchContent, onConten
<div className={'m-3 rounded bg-neutral-900 border border-black'}>
<select
className={'input-dark'}
defaultValue={mode}
value={mode.split('/').pop()}
onChange={e => setMode(`ace/mode/${e.currentTarget.value}`)}
>
{

View file

@ -119,11 +119,6 @@ select.input-dark:not(.appearance-none) {
&:hover:not(:disabled), &:focus {
@apply .border-neutral-400;
}
/* fix for Firefox trying to be cool with dark colors */
&:focus {
@apply .bg-white .text-neutral-800;
}
}
.input-dark-label {