mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
fix(sidebar): adjust button sizes and layout for improved UI consistency
- Reduced button sizes in EmbeddedDocumentsMenu and EmbeddedImportMenu for better alignment. - Updated layout spacing in SidebarButton to enhance visual clarity and consistency. - Added a new badge to the Sidebar component to indicate new items, improving user awareness.
This commit is contained in:
parent
58b26af1e0
commit
cd4eb18981
4 changed files with 27 additions and 17 deletions
|
|
@ -1014,13 +1014,13 @@ const ConnectedScraperIcons: FC<{ workspaceId: number }> = ({ workspaceId }) =>
|
|||
return (
|
||||
<div className="hidden items-center gap-1 sm:flex">
|
||||
<div aria-hidden className="h-5 w-px shrink-0 bg-border" />
|
||||
<div className="flex items-center gap-0.5" aria-label="Connected data sources">
|
||||
<ul className="m-0 flex list-none items-center gap-0.5 p-0" aria-label="Connected data sources">
|
||||
{platforms.map((platform, i) => {
|
||||
const Icon = platform.icon;
|
||||
return (
|
||||
<Tooltip key={platform.id}>
|
||||
<TooltipTrigger asChild>
|
||||
<motion.span
|
||||
<motion.li
|
||||
initial={{ opacity: 0, y: reduceMotion ? 0 : 4 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{
|
||||
|
|
@ -1031,13 +1031,13 @@ const ConnectedScraperIcons: FC<{ workspaceId: number }> = ({ workspaceId }) =>
|
|||
className="flex size-5 items-center justify-center"
|
||||
>
|
||||
<Icon className="size-3.5" />
|
||||
</motion.span>
|
||||
</motion.li>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="bottom">{platform.label} · Connected</TooltipContent>
|
||||
</Tooltip>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue