Skip to content

Commit

Permalink
moderate component fixes (#3095)
Browse files Browse the repository at this point in the history
* moderate component fixes

* nit

* nit

* update colors

* k
  • Loading branch information
pablonyx authored Nov 12, 2024
1 parent 5166649 commit f4a020b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down Expand Up @@ -434,7 +436,6 @@ export function CCPairIndexingStatusTable({
{!shouldExpand ? "Collapse All" : "Expand All"}
</Button>
</div>

<TableBody>
{sortedSources
.filter(
Expand All @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/admin/users/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/admin/ClientLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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":
Expand Down

0 comments on commit f4a020b

Please sign in to comment.