Skip to content

Commit

Permalink
🐛 fix: Fix share screenshot scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Sep 27, 2023
1 parent 56cb2f1 commit 244b3b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/chat/features/Header/ShareButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const ShareButton = memo(() => {
title={t('share')}
/>
<Modal
centered={false}
footer={null}
onCancel={() => setIsModalOpen(false)}
open={isModalOpen}
Expand Down
10 changes: 10 additions & 0 deletions src/app/chat/features/Header/ShareButton/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ export const useStyles = createStyles(({ css, token, stylish, cx }, withBackgrou
background: ${token.colorBgLayout};
border: 1px solid ${token.colorBorder};
border-radius: ${token.borderRadiusLG}px;
* {
pointer-events: none;
overflow: hidden;
::-webkit-scrollbar {
width: 0 !important;
height: 0 !important;
}
}
`,
),
role: css`
Expand Down

0 comments on commit 244b3b4

Please sign in to comment.