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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: adjust margin bottom (#6370)
Kilu.He164933325c80
diff --git a/frontend/appflowy_web_app/src/components/database/calendar/Calendar.tsx b/frontend/appflowy_web_app/src/components/database/calendar/Calendar.tsxindex 3bbcec188d..b439bb8aff 100644--- a/frontend/appflowy_web_app/src/components/database/calendar/Calendar.tsx+++ b/frontend/appflowy_web_app/src/components/database/calendar/Calendar.tsx@@ -8,7 +8,7 @@ export function Calendar () {const { dayPropGetter, localizer, formats, events, emptyEvents } = useCalendarSetup();return (- <div className={'database-calendar z-[1] h-fit pb-4 pt-4 text-sm'}>+ <div className={'database-calendar z-[1] h-fit pb-36 pt-4 text-sm'}><BigCalendarcomponents={{toolbar: (props) => <Toolbar {...props} emptyEvents={emptyEvents} />,diff --git a/frontend/appflowy_web_app/src/components/database/components/board/column/ListItem.tsx b/frontend/appflowy_web_app/src/components/database/components/board/column/ListItem.tsxindex c14e2eaa7d..19cb694fa7 100644--- a/frontend/appflowy_web_app/src/components/database/components/board/column/ListItem.tsx+++ b/frontend/appflowy_web_app/src/components/database/components/board/column/ListItem.tsx@@ -27,7 +27,7 @@ export const ListItem = memo(</div>);},- areEqual+ areEqual,);export default ListItem;diff --git a/frontend/appflowy_web_app/src/components/database/components/cell/useMeasure.ts b/frontend/appflowy_web_app/src/components/database/components/cell/useMeasure.tsindex d4d7020523..ca3ad4d24b 100644--- a/frontend/appflowy_web_app/src/components/database/components/cell/useMeasure.ts+++ b/frontend/appflowy_web_app/src/components/database/components/cell/useMeasure.ts@@ -1,7 +1,7 @@import { DEFAULT_ROW_HEIGHT } from '@/application/database-yjs';import { useCallback, useRef } from 'react';-export function useMeasureHeight({+export function useMeasureHeight ({forceUpdate,rows,}: {@@ -19,31 +19,39 @@ export function useMeasureHeight({return heightRef.current[row.rowId] || DEFAULT_ROW_HEIGHT;},- [rows]+ [rows],);const setRowHeight = useCallback((index: number, height: number) => {const row = rows[index];+ const isLastRow = index === rows.length - 1;++ let newHeight = height;++ if (isLastRow) {+ newHeight += 144;+ }+const rowId = row.rowId;if (!row || !rowId) return;const oldHeight = heightRef.current[rowId];- heightRef.current[rowId] = Math.max(oldHeight || DEFAULT_ROW_HEIGHT, height);+ heightRef.current[rowId] = Math.max(oldHeight || DEFAULT_ROW_HEIGHT, newHeight);- if (oldHeight !== height) {+ if (oldHeight !== newHeight) {forceUpdate(index);}},- [forceUpdate, rows]+ [forceUpdate, rows],);const onResize = useCallback((rowIndex: number, columnIndex: number, size: { width: number; height: number }) => {setRowHeight(rowIndex, size.height);},- [setRowHeight]+ [setRowHeight],);return {diff --git a/frontend/appflowy_web_app/src/components/database/components/grid/grid-table/GridTable.tsx b/frontend/appflowy_web_app/src/components/database/components/grid/grid-table/GridTable.tsxindex 3b088c51e2..b56a1e5952 100644--- a/frontend/appflowy_web_app/src/components/database/components/grid/grid-table/GridTable.tsx+++ b/frontend/appflowy_web_app/src/components/database/components/grid/grid-table/GridTable.tsx@@ -103,7 +103,7 @@ export const GridTable = ({ scrollLeft, columnWidth, columns, onScrollLeft }: Grif (row.type === RenderRowType.CalculateRow && column.fieldId) {return (- <div style={style}>+ <div style={style} className={'pb-36'}><GridCalculateRowCell fieldId={column.fieldId} /></div>);diff --git a/frontend/appflowy_web_app/src/components/document/Document.tsx b/frontend/appflowy_web_app/src/components/document/Document.tsxindex 24c72fc6c2..1050e487db 100644--- a/frontend/appflowy_web_app/src/components/document/Document.tsx+++ b/frontend/appflowy_web_app/src/components/document/Document.tsx@@ -46,7 +46,7 @@ export const Document = ({<divstyle={{minHeight: `calc(100vh - 48px)`,- }} className={'mb-16 flex h-full w-full flex-col items-center'}+ }} className={'mb-36 flex h-full w-full flex-col items-center'}><ViewMetaPreview {...viewMeta} /><Suspense fallback={<EditorSkeleton />}>