Skip to content

Commit 165c7ab

Browse files
committed
fix(desktop): auto completion can't user interreaction
- Removed background color classes from multiple item components to streamline styling. - Updated AutoCompletion component to enhance pointer events handling. - Improved text color classes for better readability across article, audio, picture, and video item components. - Adjusted Card component styling for a more cohesive appearance. Signed-off-by: Innei <tukon479@gmail.com>
1 parent e9653d4 commit 165c7ab

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

apps/desktop/src/renderer/src/components/ui/auto-completion/AutoCompletion.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ export const Autocomplete = forwardRef<HTMLInputElement, AutocompleteProps>(
100100
style={{ zIndex }}
101101
onWheel={stopPropagation}
102102
className={cn(
103-
"z-[60]",
104-
"bg-material-medium backdrop-blur-background text-text",
103+
"bg-material-medium backdrop-blur-background text-text pointer-events-auto",
105104
"shadow-context-menu min-w-32 overflow-hidden rounded-[6px] border p-1",
106105
"motion-scale-in-75 motion-duration-150 text-body lg:animate-none",
107106
"w-[var(--input-width)] empty:invisible",

apps/desktop/src/renderer/src/modules/entry-column/Items/article-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function ArticleItem({ entryId, entryPreview, translation }: UniversalIte
1414

1515
export function ArticleItemStateLess({ entry, feed }: EntryItemStatelessProps) {
1616
return (
17-
<div className="bg-theme-background text-text relative select-none rounded-md transition-colors">
17+
<div className="text-text relative select-none rounded-md transition-colors">
1818
<div className="relative">
1919
<div className="group relative flex py-4 pl-3 pr-2">
2020
<FeedIcon className="mr-2 size-5 rounded-sm" feed={feed} fallback />

apps/desktop/src/renderer/src/modules/entry-column/Items/audio-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function AudioItemStateLess({ entry, feed }: EntryItemStatelessProps) {
1717
<div className="relative">
1818
<div className="group relative flex py-4 pl-3 pr-2">
1919
<div className="-mt-0.5 line-clamp-4 flex-1 text-sm leading-tight">
20-
<div className="text-material-opaque flex gap-1 text-[10px] font-bold">
20+
<div className="text-text-secondary flex gap-1 text-[10px] font-bold">
2121
<FeedTitle feed={feed} />
2222
<span>·</span>
2323
<span>{!!entry.publishedAt && <RelativeTime date={entry.publishedAt} />}</span>

apps/desktop/src/renderer/src/modules/entry-column/Items/picture-item-stateless.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { EntryItemStatelessProps } from "../types"
1010

1111
export function PictureItemStateLess({ entry, feed }: EntryItemStatelessProps) {
1212
return (
13-
<div className="bg-theme-background text-text relative mx-auto max-w-md select-none rounded-md transition-colors">
13+
<div className="text-text relative mx-auto max-w-md select-none rounded-md transition-colors">
1414
<div className="relative">
1515
<div className="p-1.5">
1616
<div className="relative flex gap-2 overflow-x-auto">

apps/desktop/src/renderer/src/modules/entry-column/Items/video-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const PreviewVideoModalContent: ModalContentComponent<{
190190

191191
export function VideoItemStateLess({ entry, feed }: EntryItemStatelessProps) {
192192
return (
193-
<div className="bg-theme-background text-text relative mx-auto w-full max-w-lg rounded-md transition-colors">
193+
<div className="text-text relative mx-auto w-full max-w-lg rounded-md transition-colors">
194194
<div className="relative">
195195
<div className="p-1.5">
196196
<div className="w-full">

packages/components/src/ui/card/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElemen
55
({ className, ...props }, ref) => (
66
<div
77
ref={ref}
8-
className={cn("text-text rounded-lg border bg-white dark:bg-zinc-950/80", className)}
8+
className={cn("text-text bg-material-ultra-thin rounded-lg border", className)}
99
{...props}
1010
/>
1111
),

0 commit comments

Comments
 (0)