fix: cmdk scrollbar gutter (#4488)

This commit is contained in:
Peng Xiao
2023-09-25 20:03:02 +08:00
committed by GitHub
parent 35dc6d6687
commit 3f09ba92bc
5 changed files with 26 additions and 15 deletions
@@ -49,14 +49,7 @@ export const UserInfo = ({
className={accountButton}
onClick={onAccountSettingClick}
>
<Avatar
size={28}
name={user.name}
url={user.image}
style={{
marginRight: '10px',
}}
/>
<Avatar size={28} name={user.name} url={user.image} className="avatar" />
<div className="content">
<div className="name" title={user.name}>
@@ -100,6 +100,7 @@ export const accountButton = style({
cursor: 'pointer',
userSelect: 'none',
display: 'flex',
columnGap: '10px',
justifyContent: 'space-between',
alignItems: 'center',
':hover': {
@@ -107,7 +108,7 @@ export const accountButton = style({
},
});
globalStyle(`${accountButton} .avatar.not-sign`, {
globalStyle(`${accountButton} .avatar`, {
width: '28px',
height: '28px',
borderRadius: '50%',
@@ -115,6 +116,10 @@ globalStyle(`${accountButton} .avatar.not-sign`, {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexShrink: 0,
});
globalStyle(`${accountButton} .avatar.not-sign`, {
borderColor: 'var(--affine-icon-secondary)',
color: 'var(--affine-icon-secondary)',
background: 'var(--affine-white)',