Skip to content

Commit

Permalink
fix(#169): preview item scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
luriusTM authored Nov 24, 2024
1 parent 9ed5a25 commit f641d92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 5 additions & 3 deletions src/apps/seelenweg/modules/item/infra/UserApplication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ export const UserApplication = memo(({ item }: Props) => {
onMouseMoveCapture={(e) => e.stopPropagation()}
prefix="preview"
>
{item.opens.map((hwnd) => (
<UserApplicationPreview key={hwnd} hwnd={hwnd} />
))}
<div className="weg-item-preview-scrollbar">
{item.opens.map((hwnd) => (
<UserApplicationPreview key={hwnd} hwnd={hwnd} />
))}
</div>
</BackgroundByLayersV2>
}
>
Expand Down
11 changes: 7 additions & 4 deletions src/apps/seelenweg/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,16 @@ body {

.weg-item-preview-container {
position: relative;
display: flex;
max-width: 100vw;
overflow-x: auto;
gap: var(--config-space-between-items);

.weg-item-preview-scrollbar {
display: flex;
overflow-x: auto;

&::-webkit-scrollbar {
display: none;
&::-webkit-scrollbar {
display: none;
}
}

.weg-item-preview {
Expand Down

0 comments on commit f641d92

Please sign in to comment.