feat: update AI chat interface and entry item styles for improved user experience
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
+2
-1
@@ -344,7 +344,8 @@ const ChatInterfaceContent = ({ centerInputOnEmpty }: ChatInterfaceProps) => {
|
||||
<div className="text-text-secondary relative z-[1] -mb-4 mt-2 pl-2 text-xs">
|
||||
AI can make mistakes, please verify critical information.
|
||||
</div>
|
||||
{!centerInputOnEmpty && (
|
||||
|
||||
{(!centerInputOnEmpty || hasMessages) && (
|
||||
<div
|
||||
className="bg-background absolute inset-x-0 bottom-0 opacity-90"
|
||||
style={{
|
||||
|
||||
+1
-1
@@ -149,7 +149,7 @@ const TimelineSummarySection = () => {
|
||||
const isError = status === "error"
|
||||
return (
|
||||
<m.div initial={{ opacity: 0, y: -20 }} animate={{ opacity: 1, y: 0 }}>
|
||||
<div className="bg-fill-tertiary/60 border-border/60 dark:border-border/40 relative mx-auto flex w-full max-w-3xl flex-col gap-4 overflow-hidden rounded-3xl border p-7 text-left shadow-lg backdrop-blur-md">
|
||||
<div className="bg-material-ultra-thin border-border relative mx-auto flex w-full max-w-3xl flex-col gap-4 overflow-hidden rounded-3xl border p-7 text-left shadow-sm">
|
||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||
<div className="flex items-center gap-3">
|
||||
<AISpline />
|
||||
|
||||
@@ -275,7 +275,7 @@ export function AllItemStateLess({ entry, feed }: EntryItemStatelessProps) {
|
||||
export const AllItemSkeleton = (
|
||||
<div className={`relative w-full select-none ${readableContentMaxWidth}`}>
|
||||
<div className="group relative flex py-4">
|
||||
<Skeleton className="mr-2 size-5 shrink-0 overflow-hidden rounded-sm" />
|
||||
<Skeleton className="mr-2 size-5 shrink-0 overflow-hidden" />
|
||||
<div className="-mt-0.5 line-clamp-4 flex-1 text-sm leading-tight">
|
||||
<div className="text-material-opaque flex gap-1 text-[10px] font-bold">
|
||||
<Skeleton className="h-3 w-32 truncate" />
|
||||
|
||||
@@ -145,7 +145,7 @@ export const EntryItemWrapper: FC<
|
||||
const isWide = views.find((v) => v.view === view)?.wideMode || aiEnabled
|
||||
|
||||
const Link = view === FeedViewType.SocialMedia ? "article" : NavLink
|
||||
|
||||
const isAll = view === FeedViewType.All
|
||||
return (
|
||||
<div data-entry-id={entry?.id} style={style}>
|
||||
<Link
|
||||
@@ -153,6 +153,7 @@ export const EntryItemWrapper: FC<
|
||||
className={cn(
|
||||
"hover:bg-theme-item-hover cursor-button relative block overflow-visible duration-200",
|
||||
isWide ? "@[650px]:rounded-md rounded-none" : "",
|
||||
isAll && "!rounded-none",
|
||||
(isActive || isContextMenuOpen) && "!bg-theme-item-active",
|
||||
itemClassName,
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user