Skip to content

Commit

Permalink
feat: improve settings ui in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
0xzio committed Apr 25, 2024
1 parent a272a33 commit e5d7d7b
Show file tree
Hide file tree
Showing 18 changed files with 201 additions and 335 deletions.
1 change: 1 addition & 0 deletions extensions/database/src/ui/TagDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const TagDrawer = () => {
right-0
zIndex-101
autoFocus
outlineNone
// overflowHidden
>
<TagForm databaseId={databaseId} path={path} />
Expand Down
2 changes: 0 additions & 2 deletions packages/app/src/Workbench/BottomBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { useNodeContext } from '@penx/node-hooks'
import { store } from '@penx/store'
import { DailyShortcut, MotionButton } from '@penx/widget'
import { setStatusBarColor } from '../common/setStatusBarColor'
import { BottomBarDrawer } from './BottomBarDrawer/BottomBarDrawer'
import { QuickAdd } from './QuickAdd/QuickAdd'

interface ActionButtonProps extends ButtonProps, FowerHTMLProps<'button'> {
Expand Down Expand Up @@ -46,7 +45,6 @@ export function BottomBar() {

return (
<>
<BottomBarDrawer />
<QuickAdd />

<Box fixed left3 bottom3 toCenterY gap2 zIndex-100 bgWhite>
Expand Down
46 changes: 0 additions & 46 deletions packages/app/src/Workbench/BottomBarDrawer/BottomBarDrawer.tsx

This file was deleted.

209 changes: 0 additions & 209 deletions packages/app/src/Workbench/BottomBarDrawer/QuickAddEditor.tsx

This file was deleted.

43 changes: 0 additions & 43 deletions packages/app/src/Workbench/BottomBarDrawer/QuickAddTag.tsx

This file was deleted.

1 change: 1 addition & 0 deletions packages/app/src/Workbench/BulletDrawer/BulletDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const BulletDrawer = () => {
left-0
right-0
zIndex-101
outlineNone
autoFocus
>
<BulletMenuBox />
Expand Down
8 changes: 8 additions & 0 deletions packages/app/src/Workbench/NodeNav/MobileNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ function Title() {
const { activeNodes } = useActiveNodes()
const router = useRouterStore()

if (router.isSettings()) {
return (
<Box fontSemibold textLG>
Settings
</Box>
)
}

if (router.isTodos()) {
return (
<Box fontSemibold textLG>
Expand Down
19 changes: 19 additions & 0 deletions packages/app/src/Workbench/PageSettings/PageSettings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Box } from '@fower/react'
import { WORKBENCH_NAV_HEIGHT } from '@penx/constants'
import { SettingsSidebar } from '../SettingsModal/SettingsSidebar'
import { SettingsDrawer } from './SettingsDrawer'

export const PageSettings = () => {
return (
<Box
bgNeutral100
minH-100vh
bgAmber100
column
minH={`calc(100vh - ${WORKBENCH_NAV_HEIGHT}px)`}
>
<SettingsDrawer />
<SettingsSidebar />
</Box>
)
}
Loading

0 comments on commit e5d7d7b

Please sign in to comment.