Skip to content

Commit

Permalink
panel position height dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
daslyfe committed Oct 15, 2024
1 parent c22c786 commit dd171f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions website/src/repl/components/panel/Panel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ export function VerticalPanel({ context }) {

return (
<PanelNav
onMouseEnter={(x) => setIsHovered(true)}
onMouseLeave={(x) => setIsHovered(false)}
className={cx(
'hover:min-w-[min(600px,80vw)] hover:max-w-[min(600px,80vw)]',
pinned ? `min-w-[min(600px,80vw)] max-w-[min(600px,80vw)]` : 'min-w-8',
Expand Down
2 changes: 1 addition & 1 deletion website/src/settings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const defaultSettings = {
isZen: false,
soundsFilter: 'all',
patternFilter: 'community',
panelPosition: 'bottom',
panelPosition: window.innerWidth > 1000 ? 'right' : 'bottom',
isPanelPinned: true,
userPatterns: '{}',
audioDeviceName: defaultAudioDeviceName,
Expand Down

0 comments on commit dd171f8

Please sign in to comment.