mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: table issues (#6072)
This commit is contained in:
parent
2ef74c229c
commit
b649950d62
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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={{
|
||||
|
@ -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} />;
|
||||
|
Loading…
Reference in New Issue
Block a user