-
Notifications
You must be signed in to change notification settings - Fork 228
Drawer for Queue #947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Drawer for Queue #947
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "permissions": { | ||
| "allow": [ | ||
| "WebFetch(domain:base-ui.com)", | ||
| "Bash(npm run:*)", | ||
| "Bash(npx tsc:*)" | ||
| ] | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,6 @@ | ||||||||||||||||||||||||||
| import { Popover } from '@base-ui/react/popover'; | ||||||||||||||||||||||||||
| import { Drawer } from '@base-ui/react/drawer'; | ||||||||||||||||||||||||||
| import { useLingui } from '@lingui/react/macro'; | ||||||||||||||||||||||||||
| import * as stylex from '@stylexjs/stylex'; | ||||||||||||||||||||||||||
| import { useRef } from 'react'; | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| import ButtonIcon from '../elements/ButtonIcon'; | ||||||||||||||||||||||||||
| import { usePlayerState } from '../hooks/usePlayer'; | ||||||||||||||||||||||||||
|
|
@@ -17,7 +16,6 @@ export default function Header() { | |||||||||||||||||||||||||
| const trackPlaying = usePlayingTrack(); | ||||||||||||||||||||||||||
| const { t } = useLingui(); | ||||||||||||||||||||||||||
| const platform = window.__MUSEEKS_PLATFORM; | ||||||||||||||||||||||||||
| const queueAnchorRef = useRef<HTMLDivElement>(null); | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||
| <header | ||||||||||||||||||||||||||
|
|
@@ -42,9 +40,9 @@ export default function Header() { | |||||||||||||||||||||||||
| {trackPlaying != null && ( | ||||||||||||||||||||||||||
| <> | ||||||||||||||||||||||||||
| <PlayingBar trackPlaying={trackPlaying} /> | ||||||||||||||||||||||||||
| <Popover.Root> | ||||||||||||||||||||||||||
| <div ref={queueAnchorRef} {...stylex.props(styles.queue)}> | ||||||||||||||||||||||||||
| <Popover.Trigger | ||||||||||||||||||||||||||
| <Drawer.Root swipeDirection="left" modal={false}> | ||||||||||||||||||||||||||
| <div {...stylex.props(styles.queue)}> | ||||||||||||||||||||||||||
| <Drawer.Trigger | ||||||||||||||||||||||||||
| render={(triggerProps) => ( | ||||||||||||||||||||||||||
| <ButtonIcon | ||||||||||||||||||||||||||
| {...triggerProps} | ||||||||||||||||||||||||||
|
|
@@ -56,19 +54,17 @@ export default function Header() { | |||||||||||||||||||||||||
| )} | ||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||
| <Popover.Portal> | ||||||||||||||||||||||||||
| <Popover.Positioner | ||||||||||||||||||||||||||
| side="bottom" | ||||||||||||||||||||||||||
| alignOffset={-16} | ||||||||||||||||||||||||||
| align="end" | ||||||||||||||||||||||||||
| anchor={queueAnchorRef} | ||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||
| <Popover.Popup {...stylex.props(styles.queueContainer)}> | ||||||||||||||||||||||||||
| <Drawer.Portal> | ||||||||||||||||||||||||||
| <Drawer.Viewport {...stylex.props(styles.queueViewport)}> | ||||||||||||||||||||||||||
| <Drawer.Popup {...stylex.props(styles.queuePopup)}> | ||||||||||||||||||||||||||
| <Drawer.Title {...stylex.props(styles.srOnly)}> | ||||||||||||||||||||||||||
| {t`Queue`} | ||||||||||||||||||||||||||
| </Drawer.Title> | ||||||||||||||||||||||||||
| <Queue queue={queue} queueCursor={queueCursor} /> | ||||||||||||||||||||||||||
| </Popover.Popup> | ||||||||||||||||||||||||||
| </Popover.Positioner> | ||||||||||||||||||||||||||
| </Popover.Portal> | ||||||||||||||||||||||||||
| </Popover.Root> | ||||||||||||||||||||||||||
| </Drawer.Popup> | ||||||||||||||||||||||||||
| </Drawer.Viewport> | ||||||||||||||||||||||||||
| </Drawer.Portal> | ||||||||||||||||||||||||||
| </Drawer.Root> | ||||||||||||||||||||||||||
| </> | ||||||||||||||||||||||||||
| )} | ||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||
|
|
@@ -132,10 +128,49 @@ const styles = stylex.create({ | |||||||||||||||||||||||||
| display: 'flex', | ||||||||||||||||||||||||||
| alignItems: 'center', | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
| queueContainer: { | ||||||||||||||||||||||||||
| queueBackdrop: { | ||||||||||||||||||||||||||
| position: 'fixed', | ||||||||||||||||||||||||||
| inset: 0, | ||||||||||||||||||||||||||
| zIndex: 999, | ||||||||||||||||||||||||||
| transitionProperty: 'background-color', | ||||||||||||||||||||||||||
| transitionDuration: '200ms', | ||||||||||||||||||||||||||
| backgroundColor: { | ||||||||||||||||||||||||||
| default: 'rgba(0, 0, 0, 0)', | ||||||||||||||||||||||||||
| ':is([data-starting-style])': 'rgba(0, 0, 0, 0)', | ||||||||||||||||||||||||||
| ':is([data-open])': 'rgba(0, 0, 0, 0.2)', | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
|
Comment on lines
+131
to
+142
|
||||||||||||||||||||||||||
| queueBackdrop: { | |
| position: 'fixed', | |
| inset: 0, | |
| zIndex: 999, | |
| transitionProperty: 'background-color', | |
| transitionDuration: '200ms', | |
| backgroundColor: { | |
| default: 'rgba(0, 0, 0, 0)', | |
| ':is([data-starting-style])': 'rgba(0, 0, 0, 0)', | |
| ':is([data-open])': 'rgba(0, 0, 0, 0.2)', | |
| }, | |
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a machine-local Claude permissions file to the repo. Since it’s named
settings.local.jsonand isn’t covered by the current.gitignorepattern (*.localdoesn’t match*.local.json), it will be committed for everyone. Consider removing it from version control and adding an ignore rule (or committing a sanitizedsettings.example.jsoninstead) to avoid leaking/standardizing local tool permissions unintentionally.