mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
hotfix: in-app-menu position issue
This commit is contained in:
@ -132,7 +132,7 @@ export const Panel = (props: PanelProps) => {
|
||||
<Show when={local.open}>
|
||||
<ul
|
||||
{...leftProps}
|
||||
id={'sub-panel'}
|
||||
data-ytmd-sub-panel={true}
|
||||
ref={setPanel}
|
||||
class={panelStyle()}
|
||||
style={{
|
||||
|
||||
@ -250,8 +250,8 @@ export const TitleBar = (props: TitleBarProps) => {
|
||||
if (
|
||||
e.target instanceof HTMLElement &&
|
||||
!(
|
||||
e.target.closest('#main-panel') ||
|
||||
e.target.closest('#sub-panel')
|
||||
e.target.closest('nav[data-ytmd-main-panel]') ||
|
||||
e.target.closest('ul[data-ytmd-sub-panel]')
|
||||
)
|
||||
) {
|
||||
setOpenTarget(null);
|
||||
@ -266,7 +266,7 @@ export const TitleBar = (props: TitleBarProps) => {
|
||||
});
|
||||
|
||||
return (
|
||||
<nav id={'main-panel'} class={titleStyle()} data-macos={props.isMacOS}>
|
||||
<nav data-ytmd-main-panel={true} class={titleStyle()} data-macos={props.isMacOS}>
|
||||
<IconButton
|
||||
onClick={() => setCollapsed(!collapsed())}
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user