mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 00:26:51 +08:00
fix: adjust some windows style issues (#2454)
This commit is contained in:
@@ -191,10 +191,11 @@ export const windowAppControl = style({
|
||||
WebkitAppRegion: 'no-drag',
|
||||
cursor: 'pointer',
|
||||
display: 'inline-flex',
|
||||
width: '32px',
|
||||
width: '42px',
|
||||
height: '32px',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
borderRadius: '2px',
|
||||
borderRadius: '4px',
|
||||
selectors: {
|
||||
'&[data-type="close"]:hover': {
|
||||
background: 'var(--affine-error-color)',
|
||||
|
||||
@@ -22,15 +22,11 @@ export type SidebarHeaderProps = {
|
||||
export const SidebarHeader = (props: SidebarHeaderProps) => {
|
||||
const [open, setOpen] = useAtom(appSidebarOpenAtom);
|
||||
const environment = getEnvironment();
|
||||
const isMacosDesktop = environment.isDesktop && environment.isMacOs;
|
||||
return (
|
||||
<div
|
||||
className={navHeaderStyle}
|
||||
data-is-macos-electron={isMacosDesktop}
|
||||
data-open={open}
|
||||
>
|
||||
{isMacosDesktop && (
|
||||
<div className={navHeaderStyle} data-open={open}>
|
||||
{environment.isDesktop && (
|
||||
<>
|
||||
{environment.isMacOs && <div style={{ flex: 1 }} />}
|
||||
<IconButton
|
||||
size="middle"
|
||||
data-testid="app-sidebar-arrow-button-back"
|
||||
@@ -57,6 +53,8 @@ export const SidebarHeader = (props: SidebarHeaderProps) => {
|
||||
>
|
||||
<ArrowRightSmallIcon />
|
||||
</IconButton>
|
||||
|
||||
{!environment.isMacOs && <div style={{ flex: 1 }} />}
|
||||
</>
|
||||
)}
|
||||
<IconButton
|
||||
|
||||
Reference in New Issue
Block a user