mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-23 08:02:06 +00:00
chore: improve readability
This commit is contained in:
@ -54,7 +54,7 @@ export const onMainLoad = ({
|
||||
return target;
|
||||
};
|
||||
|
||||
ipcMain.handle('ytmd:menu-event', (event, commandId: number) => {
|
||||
ipcMain.handle('peard:menu-event', (event, commandId: number) => {
|
||||
const target = getMenuItemById(commandId);
|
||||
if (target)
|
||||
(
|
||||
|
||||
@ -25,7 +25,7 @@ export const onRendererLoad = async ({
|
||||
}: RendererContext<InAppMenuConfig>) => {
|
||||
setConfig(await getConfig());
|
||||
|
||||
document.title = 'YouTube Music';
|
||||
document.title = 'Pear Desktop';
|
||||
const stylesheet = new CSSStyleSheet();
|
||||
stylesheet.replaceSync(scrollStyle);
|
||||
document.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];
|
||||
|
||||
@ -278,7 +278,7 @@ export const PanelItem = (props: PanelItemProps) => {
|
||||
};
|
||||
|
||||
const handleClick = async () => {
|
||||
await window.ipcRenderer.invoke('ytmd:menu-event', props.commandId);
|
||||
await window.ipcRenderer.invoke('peard:menu-event', props.commandId);
|
||||
if (props.type === 'radio') {
|
||||
props.onChange?.(!props.checked);
|
||||
} else if (props.type === 'checkbox') {
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
--menu-bar-height: 32px;
|
||||
}
|
||||
|
||||
/* youtube-music style */
|
||||
/* original style */
|
||||
ytmusic-app-layout {
|
||||
overflow: auto scroll;
|
||||
height: calc(100vh - var(--menu-bar-height, 36px));
|
||||
@ -73,7 +73,7 @@ ytmusic-app-layout ytmusic-player-page[is-mweb-modernization-enabled] .side-pane
|
||||
transform: translate(0, calc(var(--ytmusic-player-page-inner-height) - var(--ytmusic-player-page-tabs-header-height) - var(--ytmusic-player-page-player-bar-height) - var(--menu-bar-height, 32px) ));
|
||||
}
|
||||
|
||||
/* ytm-bugs: see https://github.com/th-ch/youtube-music/issues/1737 */
|
||||
/* ytm-bugs: see https://github.com/pear-devs/pear-desktop/issues/1737 */
|
||||
html {
|
||||
scrollbar-color: unset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user