Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: table issues (#6072)

Kilu.Heb649950d6234
diff --git a/frontend/appflowy_web_app/src/application/slate-yjs/utils/convert.ts b/frontend/appflowy_web_app/src/application/slate-yjs/utils/convert.ts
index 114b52d013..87215e2df3 100644
--- a/frontend/appflowy_web_app/src/application/slate-yjs/utils/convert.ts
+++ b/frontend/appflowy_web_app/src/application/slate-yjs/utils/convert.ts
@@ -42,6 +42,8 @@ export function yDataToSlateContent ({
if (slateNode.type === BlockType.TableBlock) {
slateNode.children = sortTableCells(children as TableCellNode[]);
+ } else if (slateNode.type === BlockType.TableCell) {
+ slateNode.children = children.slice(0, 1);
} else {
slateNode.children = children;
}
diff --git a/frontend/appflowy_web_app/src/components/as-template/AsTemplate.tsx b/frontend/appflowy_web_app/src/components/as-template/AsTemplate.tsx
index 3609f8b4b4..16106d24e2 100644
--- a/frontend/appflowy_web_app/src/components/as-template/AsTemplate.tsx
+++ b/frontend/appflowy_web_app/src/components/as-template/AsTemplate.tsx
@@ -67,7 +67,7 @@ function AsTemplate ({
onOk: () => {
const url = import.meta.env.AF_BASE_URL?.includes('test') ? 'https://test.appflowy.io' : 'https://appflowy.io';
- window.open(`${url}/template-center/${selectedCategoryIds[0]}/${viewId}`, '_blank');
+ window.open(`${url}/templates/${selectedCategoryIds[0]}/${viewId}`, '_blank');
},
});
handleBack();
diff --git a/frontend/appflowy_web_app/src/components/as-template/related-template/TemplateItem.tsx b/frontend/appflowy_web_app/src/components/as-template/related-template/TemplateItem.tsx
index 7960ae8464..fb77e40c16 100644
--- a/frontend/appflowy_web_app/src/components/as-template/related-template/TemplateItem.tsx
+++ b/frontend/appflowy_web_app/src/components/as-template/related-template/TemplateItem.tsx
@@ -18,7 +18,7 @@ function TemplateItem ({ template, category }: { template: TemplateSummary; cate
return (
<>
<a
- href={`${url}/template-center/${category.id}/${template.view_id}`}
+ href={`${url}/templates/${category.id}/${template.view_id}`}
className={'relative rounded-[16px] pt-4 px-4 h-[230px] w-full overflow-hidden'}
target={'_blank'}
style={{
diff --git a/frontend/appflowy_web_app/src/components/database/components/board/card/Card.tsx b/frontend/appflowy_web_app/src/components/database/components/board/card/Card.tsx
index dd195ca81f..68132582fc 100644
--- a/frontend/appflowy_web_app/src/components/database/components/board/card/Card.tsx
+++ b/frontend/appflowy_web_app/src/components/database/components/board/card/Card.tsx
@@ -43,7 +43,7 @@ export const Card = memo(({ groupFieldId, rowId, onResize, isDragging }: CardPro
style={{
minHeight: '38px',
}}
- className='relative flex flex-col gap-2 rounded-lg border border-line-border p-3 text-xs shadow-sm'
+ className="relative flex flex-col gap-2 rounded-[8px] border border-line-divider p-3 text-xs"
>
{showFields.map((field, index) => {
return <CardField index={index} key={field.fieldId} rowId={rowId} fieldId={field.fieldId} />;