Skip to content

Commit

Permalink
fix: adjust responsive breakpoint for entry content
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 5, 2024
1 parent 78cb08c commit d9235f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/renderer/src/components/ui/scroll-area/ScrollArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ const Thumb = React.forwardRef<
>(({ className, ...rest }, forwardedRef) => (
<ScrollAreaBase.Thumb
{...rest}
onClick={(e) => {
e.stopPropagation()
rest.onClick?.(e)
}}
ref={forwardedRef}
className={cn(
"relative w-full flex-1 rounded-xl transition-colors duration-150",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/modules/entry-content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function EntryContentRender({ entryId }: { entryId: string }) {
>
<article
onContextMenu={stopPropagation}
className="relative m-auto min-w-0 max-w-[550px] @4xl:max-w-[70ch]"
className="relative m-auto min-w-0 max-w-[550px] @3xl:max-w-[70ch]"
>
<a
href={entry.entries.url || void 0}
Expand Down

0 comments on commit d9235f4

Please sign in to comment.