design sweep
This commit is contained in:
parent
a9bb26001b
commit
b5b777d038
2 changed files with 7 additions and 5 deletions
|
|
@ -459,8 +459,8 @@ export function KnowledgeDropdown() {
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
{isOpen && !isLoading && (
|
{isOpen && !isLoading && (
|
||||||
<div className="absolute top-full left-0 right-0 mt-1 bg-popover border border-border rounded-md shadow-md z-50">
|
<div className="absolute top-full left-0 right-0 mt-1 bg-popover border border-border rounded-lg shadow-md z-50">
|
||||||
<div className="py-1">
|
<div className="p-1">
|
||||||
{menuItems.map((item, index) => (
|
{menuItems.map((item, index) => (
|
||||||
<button
|
<button
|
||||||
key={index}
|
key={index}
|
||||||
|
|
@ -468,13 +468,15 @@ export function KnowledgeDropdown() {
|
||||||
disabled={"disabled" in item ? item.disabled : false}
|
disabled={"disabled" in item ? item.disabled : false}
|
||||||
title={"tooltip" in item ? item.tooltip : undefined}
|
title={"tooltip" in item ? item.tooltip : undefined}
|
||||||
className={cn(
|
className={cn(
|
||||||
"w-full flex flex-nowrap items-center px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground",
|
"w-full flex flex-nowrap items-center px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground rounded-sm",
|
||||||
"disabled" in item &&
|
"disabled" in item &&
|
||||||
item.disabled &&
|
item.disabled &&
|
||||||
"opacity-50 cursor-not-allowed hover:bg-transparent hover:text-current"
|
"opacity-50 cursor-not-allowed hover:bg-transparent hover:text-current"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{item.icon && <item.icon className="h-4 w-4 mr-2 text-muted-foreground" />}
|
{item.icon && (
|
||||||
|
<item.icon className="h-4 w-4 mr-2 text-muted-foreground" />
|
||||||
|
)}
|
||||||
{item.label}
|
{item.label}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ export function LayoutWrapper({ children }: { children: React.ReactNode }) {
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"p-6 h-full container",
|
"p-6 h-full container",
|
||||||
isSmallWidthPath && "max-w-[850px]"
|
isSmallWidthPath && "max-w-[850px] ml-0"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue