Skip to content

Commit

Permalink
fix: ai action panel scroll bar and width (#7033)
Browse files Browse the repository at this point in the history
  • Loading branch information
donteatfriedrice committed May 13, 2024
1 parent f0e1d33 commit aa6f0b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions packages/blocks/src/_common/components/ai-item/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,13 @@ export const menuItemStyles = css`
.enter-icon,
.arrow-right-icon {
color: var(--affine-icon-color);
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-40%);
display: flex;
}
.enter-icon {
display: none;
opacity: 0;
}
.arrow-right-icon,
.menu-item:hover .enter-icon {
display: flex;
opacity: 1;
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ export class EdgelessCopilotPanel extends WithDisposable(LitElement) {
box-shadow: var(--affine-shadow-2);
border-radius: 8px;
z-index: var(--affine-z-index-popover);
scrollbar-width: none;
}
.edgeless-copilot-panel::-webkit-scrollbar {
width: 5px;
max-height: 100px;
max-height: 40px;
}
.edgeless-copilot-panel::-webkit-scrollbar-thumb {
border-radius: 20px;
Expand Down

1 comment on commit aa6f0b7

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Size Report

Bundles

Entry Size Gzip Brotli
examples/basic 1.38 kB 770 B 660 B (-4 B)

Packages

Name Size Gzip Brotli
blocks 2.44 MB (-105 B) 574 kB (-31 B) 414 kB (-375 B)
editor 84 B 89 B 63 B
store 83 B 88 B 63 B
inline 84 B 88 B 63 B

Please sign in to comment.