fix: table issues (#6072)

This commit is contained in:
Kilu.He 2024-08-26 13:52:02 +08:00 committed by GitHub
parent 2ef74c229c
commit b649950d62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 3 deletions

View File

@ -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;
}

View File

@ -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();

View File

@ -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={{

View File

@ -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} />;