fix: some alignements issue

This commit is contained in:
Ramesh Mane
2026-03-28 07:09:11 +00:00
parent 704cce9987
commit 42cb343d53
7 changed files with 66 additions and 20 deletions

View File

@@ -3,6 +3,15 @@ import { IntegrationsType, integrationCategoryNeedDefault } from 'nocodb-sdk'
import type { IntegrationType, UserType, WorkspaceUserType } from 'nocodb-sdk'
import dayjs from 'dayjs'
const props = withDefaults(
defineProps<{
showTitle?: boolean
}>(),
{
showTitle: false,
},
)
type SortFields = 'title' | 'sub_type' | 'created_at' | 'created_by' | 'source_count'
const { t } = useI18n()
@@ -298,6 +307,10 @@ const customRow = (record: Record<string, any>) => ({
<template>
<div class="h-full flex flex-col gap-6 nc-workspace-connections nc-content-max-w mx-auto">
<div class="flex flex-col justify-between gap-2 mx-1">
<h2 v-if="showTitle" class="text-lg font-semibold text-nc-content-gray mb-0">
{{ $t('general.activeConnections') }}
</h2>
<div class="text-sm font-normal text-nc-content-gray-subtle2">
<div>
{{ $t('msg.manageConnections') }}
@@ -310,7 +323,12 @@ const customRow = (record: Record<string, any>) => ({
</a>
</div>
</div>
<div class="flex items-center gap-3">
<div
class="flex items-center gap-3"
:class="{
'mt-2': showTitle,
}"
>
<a-input
v-model:value="searchQuery"
type="text"

View File

@@ -11,12 +11,14 @@ const props = withDefaults(
filterCategory?: (c: IntegrationCategoryItemType) => boolean
filterIntegration?: (i: IntegrationItemType) => boolean
showFilter?: boolean
showTitle?: boolean
}>(),
{
isModal: false,
filterCategory: () => true,
filterIntegration: () => true,
showFilter: false,
showTitle: false,
},
)
@@ -305,13 +307,26 @@ watch(activeViewTab, (value) => {
>
<div v-if="integrationListContainerWidth" class="px-6 pt-6">
<div
class="flex items-end justify-end flex-wrap gap-3 m-auto"
class="flex justify-end flex-wrap gap-3 m-auto"
:class="{
'items-start': showTitle,
'items-end': !showTitle,
}"
:style="{
maxWidth: listWrapperMaxWidth,
}"
>
<div class="flex-1">
<div class="text-sm font-normal text-nc-content-gray-subtle2 mb-2">
<h2 v-if="showTitle" class="text-lg font-semibold text-nc-content-gray mb-2">
{{ $t('general.integrations') }}
</h2>
<div
class="text-sm font-normal text-nc-content-gray-subtle2 mb-2"
:class="{
'!mb-4': showTitle,
}"
>
<div>
{{ $t('msg.connectIntegrations') }}
<a href="https://nocodb.com/docs/product-docs/integrations" target="_blank" rel="noopener noreferrer">{{