Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect improvements #41

Merged
merged 4 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/engine-frontend/components/ConnectionPortal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function ConnectionPortal({className}: ConnectionPortalProps) {
return (
<div
className={cn(
'flex size-full flex-col gap-4 p-4 lg:p-8',
'flex size-full flex-col gap-4 overflow-x-hidden p-4 lg:p-8',
className,
)}>
{listConnectionsRes.isLoading ||
Expand Down
4 changes: 2 additions & 2 deletions packages/engine-frontend/components/ConnectionsTabContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function ConnectionsTabContent({
</div>
<Button
onClick={onConnect}
className="inline-flex h-10 items-center justify-center self-end">
Connect
className="h-10 items-center justify-center self-start">
Visit Add a Connection
</Button>
</div>
) : (
Expand Down
4 changes: 2 additions & 2 deletions packages/engine-frontend/components/IntegrationSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function IntegrationSearch({
<Loader className="size-5 animate-spin text-[#8A5DF6]" />
</div>
) : (
<div className="space-y-6 overflow-y-auto py-4">
<div className="space-y-6 py-4">
{(ints && ints.length > 0) ||
Object.keys(intsByCategory ?? {}).length > 0 ? (
Object.entries(intsByCategory ?? {}).map(
Expand All @@ -105,7 +105,7 @@ export function IntegrationSearch({
<h3 className="mb-2 text-lg font-semibold">
{parseCategory(category)}
</h3>
<div className="flex flex-row gap-4">
<div className="flex w-full flex-row flex-wrap gap-4 lg:w-[60%]">
{categoryInts.map((int) => (
<WithConnectorConnect
key={int.id}
Expand Down
10 changes: 6 additions & 4 deletions packages/ui/domain-components/IntegrationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export function IntegrationCard({
<Plus color="#8A7DFF" size={24} />
<span className="mt-2 font-sans text-[14px] font-semibold text-[#8A7DFF]">
Add
</span>{' '}
{/* Set to 14px and semibold */}
</span>
</div>
) : (
<div className="flex h-full flex-col items-center justify-center">
Expand All @@ -37,9 +36,12 @@ export function IntegrationCard({
className="h-8 w-8"
style={{marginBottom: '10px', objectFit: 'contain'}}
/>{' '}
<p className="m-0 text-center font-sans text-sm font-semibold">
<p
className={`m-0 max-w-[100px] text-center text-sm font-semibold hover:text-[#8A7DFF] ${
name.length > 20 ? 'truncate' : ''
}`}>
{name}
</p>{' '}
</p>
</div>
)}
</CardContent>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/shadcn/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const TabsList = React.forwardRef<
ref={ref}
className={cn(
'rounded-md bg-button-foreground p-1 text-muted-foreground',
'flex flex-col sm:inline-flex sm:h-10 sm:flex-row sm:items-center sm:justify-center',
'flex h-10 flex-row',
className,
)}
{...props}
Expand Down
Loading