Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(mobile): tab is not at bottom in tag detail page when empty (#11723)

Cats Juiced045651a0367
diff --git a/packages/frontend/core/src/mobile/views/all-docs/doc/list.css.ts b/packages/frontend/core/src/mobile/views/all-docs/doc/list.css.ts
index 2f5c6e00ce..0334cebf45 100644
--- a/packages/frontend/core/src/mobile/views/all-docs/doc/list.css.ts
+++ b/packages/frontend/core/src/mobile/views/all-docs/doc/list.css.ts
@@ -30,3 +30,7 @@ export const groups = style({
flexDirection: 'column',
gap: 32,
});
+export const emptySpaceY = style({
+ height: 0,
+ flexGrow: 1,
+});
diff --git a/packages/frontend/core/src/mobile/views/all-docs/doc/list.tsx b/packages/frontend/core/src/mobile/views/all-docs/doc/list.tsx
index 3139843c41..12dc8fc4ff 100644
--- a/packages/frontend/core/src/mobile/views/all-docs/doc/list.tsx
+++ b/packages/frontend/core/src/mobile/views/all-docs/doc/list.tsx
@@ -79,7 +79,12 @@ export const AllDocList = ({
// }, [finalPageMetas, groupDefs]);
if (!finalPageMetas.length) {
- return <EmptyDocs absoluteCenter tagId={tag?.id} />;
+ return (
+ <>
+ <EmptyDocs absoluteCenter tagId={tag?.id} />
+ <div className={styles.emptySpaceY} />
+ </>
+ );
}
// return (