Skip to content
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

fix: 修复 member 页面打开插件弹窗出现滚动条问题 #108

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default function PersistentDrawerRight() {
anchor="right"
open={isShowDrawer}
>
<div className="flex h-full">
<div className="flex h-full overflow-hidden">
<div
className={`mx-[2px] mt-[37px] flex h-[24px] flex-shrink-0 justify-end`}
style={{
Expand Down
10 changes: 4 additions & 6 deletions src/welcome/Profile/community/ChatRoomDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,14 @@ export default function ChatRoomDrawer({ open = false, community, onClose }: Pro
return (
<Drawer
sx={{
width: 'auto',
// 和 XFANS_CONTENT_WIDTH 不符合,TODO 用常量
maxWidth: '427px',
width: '427px',
// 防止有宽度一瞬间撑开了内容出现了一闪而过的滚动条
display: open ? 'block' : 'none',
'& .MuiDrawer-paper': {
width: 'auto',
maxWidth: '427px',
width: '427px',
overflow: 'hidden',
border: 'none',
// 防止有宽度一瞬间撑开了内容出现了一闪而过的滚动条
display: open ? 'block' : 'none',
},
}}
variant="persistent"
Expand Down
6 changes: 4 additions & 2 deletions src/welcome/Profile/community/MembersDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ export default function MembersDrawer({ isOwner = false, subject, open = false,
return (
<Drawer
sx={{
width: '433px',
width: '427px',
display: open ? 'block' : 'none',
'& .MuiDrawer-paper': {
width: '433px',
width: '427px',
overflow: 'hidden',
border: 'none',
},
}}
Expand Down
Loading