moderate component fixes (#3095)

* moderate component fixes

* nit

* nit

* update colors

* k
This commit is contained in:
pablodanswer 2024-11-11 16:47:35 -08:00 committed by GitHub
parent 5166649eae
commit f4a020b599
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 8 deletions

View File

@ -194,7 +194,9 @@ function ConnectorRow({
return (
<TableRow
className={`hover:bg-hover-light ${
invisible ? "invisible !h-0 !-mb-10" : "!border !border-border"
invisible
? "invisible !h-0 !-mb-10 !border-none"
: "!border !border-border"
} w-full cursor-pointer relative `}
onClick={() => {
router.push(`/admin/connector/${ccPairsIndexingStatus.cc_pair_id}`);
@ -434,7 +436,6 @@ export function CCPairIndexingStatusTable({
{!shouldExpand ? "Collapse All" : "Expand All"}
</Button>
</div>
<TableBody>
{sortedSources
.filter(
@ -454,14 +455,12 @@ export function CCPairIndexingStatusTable({
return (
<React.Fragment key={ind}>
<br className="mt-4" />
<SummaryRow
source={source}
summary={groupSummaries[source]}
isOpen={connectorsToggled[source] || false}
onToggle={() => toggleSource(source)}
/>
{connectorsToggled[source] && (
<>
<TableRow className="border border-border">

View File

@ -188,7 +188,7 @@ const AddUserButton = ({
};
return (
<>
<Button className="w-fit" onClick={() => setModal(true)}>
<Button className="my-auto w-fit" onClick={() => setModal(true)}>
<div className="flex">
<FiPlusSquare className="my-auto mr-2" />
Invite Users

View File

@ -420,7 +420,7 @@ export function ClientLayout({
<div className="fixed bg-background left-0 gap-x-4 mb-8 px-4 py-2 w-full items-center flex justify-end">
<UserDropdown />
</div>
<div className="pt-20 flex overflow-y-auto h-full px-4 md:px-12">
<div className="pt-20 flex overflow-y-auto overflow-x-hidden h-full px-4 md:px-12">
{children}
</div>
</div>

View File

@ -12,7 +12,7 @@ const buttonVariants = cva(
success:
"bg-green-100 text-green-600 hover:bg-green-500/90 dark:bg-blue-500 dark:text-neutral-50 dark:hover:bg-green-900/90",
"success-reverse":
"bg-green-500 text-white hover:bg-green-600/90 dark:bg-neutral-50 dark:text-blue-500 dark:hover:bg-green-100/90",
"bg-green-500 text-inverted hover:bg-green-600/90 dark:bg-neutral-50 dark:text-blue-500 dark:hover:bg-green-100/90",
default:
"bg-neutral-900 border-border text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",
@ -38,7 +38,7 @@ const buttonVariants = cva(
"link-reverse":
"text-neutral-50 underline-offset-4 hover:underline dark:text-neutral-900",
submit:
"bg-green-500 text-green-100 hover:bg-green-600/90 dark:bg-neutral-50 dark:text-blue-500 dark:hover:bg-green-100/90",
"bg-green-500 text-inverted hover:bg-green-600/90 dark:bg-neutral-50 dark:text-blue-500 dark:hover:bg-green-100/90",
// "bg-blue-600 text-neutral-50 hover:bg-blue-600/80 dark:bg-blue-600 dark:text-neutral-50 dark:hover:bg-blue-600/90",
"submit-reverse":