-
-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: settings icon and flex overflow
- Loading branch information
Showing
7 changed files
with
31 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
import { IconButton } from '@/components/IconButton'; | ||
import { TitleBar, Title } from '@/components/TitleBar'; | ||
import { FunctionComponent } from 'preact'; | ||
import { PreferencesPane } from './pane'; | ||
import { MockState } from './mock-state'; | ||
import { PreferencesMenu } from './menu'; | ||
|
||
interface PreferencesViewProps { | ||
close: () => void; | ||
} | ||
|
||
export const PreferencesView: FunctionComponent<PreferencesViewProps> = ({ | ||
close, | ||
}) => ( | ||
<div className="sn-full-screen flex flex-col bg-contrast z-index-preferences"> | ||
<TitleBar className="items-center justify-between"> | ||
{/* div is added so flex justify-between can center the title */} | ||
<div className="h-8 w-8" /> | ||
<Title className="text-lg">Your preferences for Standard Notes</Title> | ||
<IconButton | ||
onClick={() => { | ||
close(); | ||
}} | ||
type="normal" | ||
iconType="close" | ||
/> | ||
</TitleBar> | ||
<PreferencesPane /> | ||
</div> | ||
); | ||
}) => { | ||
const store = new MockState(); | ||
return ( | ||
<div className="sn-full-screen flex flex-col bg-contrast z-index-preferences"> | ||
<TitleBar className="items-center justify-between"> | ||
{/* div is added so flex justify-between can center the title */} | ||
<div className="h-8 w-8" /> | ||
<Title className="text-lg">Your preferences for Standard Notes</Title> | ||
<IconButton | ||
onClick={() => { | ||
close(); | ||
}} | ||
type="normal" | ||
iconType="close" | ||
/> | ||
</TitleBar> | ||
<div className="flex flex-row flex-grow min-h-0"> | ||
<PreferencesMenu store={store}></PreferencesMenu> | ||
</div> | ||
</div> | ||
); | ||
}; |
2 changes: 1 addition & 1 deletion
2
app/assets/javascripts/ui_models/app_state/preferences_state.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters