diff --git a/app/(home-pages)/(writer)/home/HomeLayout.tsx b/app/(home-pages)/(writer)/home/HomeLayout.tsx
index 0bca199c..db630f02 100644
--- a/app/(home-pages)/(writer)/home/HomeLayout.tsx
+++ b/app/(home-pages)/(writer)/home/HomeLayout.tsx
@@ -164,7 +164,7 @@ export function HomeLeafletList(props: {
initialFacts={initialFacts?.facts || {}}
showPreview
/>
-
+
>
);
}
diff --git a/app/[leaflet_id]/Footer.tsx b/app/[leaflet_id]/Footer.tsx
index c5070057..a7159ab8 100644
--- a/app/[leaflet_id]/Footer.tsx
+++ b/app/[leaflet_id]/Footer.tsx
@@ -1,6 +1,6 @@
"use client";
import { useUIState } from "src/useUIState";
-import { DefaultFooter } from "components/ActionBar/Footer";
+import { FooterLayout } from "components/ActionBar/Footer";
import { Media } from "components/Media";
import { ThemePopover } from "components/ThemeManager/ThemeSetter";
import { Toolbar } from "components/Toolbar";
@@ -52,14 +52,13 @@ export function LeafletFooter(props: { entityID: string }) {
return (
{focusedBlock &&
focusedBlock.entityType == "block" &&
hasBlockToolbar(blockType) &&
entity_set.permissions.write ? (
- {
if (e.currentTarget === e.target) e.preventDefault();
}}
@@ -69,20 +68,19 @@ export function LeafletFooter(props: { entityID: string }) {
blockID={focusedBlock.entityID}
blockType={blockType}
/>
-
+
) : focusedBlock &&
focusedBlock.entityType === "footnote" &&
entity_set.permissions.write ? (
- {
if (e.currentTarget === e.target) e.preventDefault();
}}
>
-
+
) : entity_set.permissions.write ? (
-
+
{pub?.publications &&
identity?.atp_did &&
pub.publications.identity_did === identity.atp_did ? (
@@ -102,7 +100,7 @@ export function LeafletFooter(props: { entityID: string }) {
-
+
) : (
diff --git a/app/globals.css b/app/globals.css
index c8bd0fd4..5c8b412a 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -123,7 +123,7 @@
--hatchSVG: url("/hatchPattern.svg");
--wavySVG: (url("/RSVPBackground/wavy.svg"));
- --safe-padding-bottom: max(calc(env(safe-area-inset-bottom) - 8px), 16px);
+ --safe-padding-bottom: calc(env(safe-area-inset-bottom) - 8px);
}
@media (max-width: 640px) {
:root {
@@ -539,7 +539,7 @@ pre.shiki {
}
.pwa-padding {
- padding-top: max(calc(env(safe-area-inset-top) - 8px)) !important;
+ padding-top: calc(env(safe-area-inset-top) - 8px) !important;
}
.pwa-padding-bottom {
padding-bottom: var(--safe-padding-bottom) !important;
diff --git a/components/ActionBar/Footer.tsx b/components/ActionBar/Footer.tsx
index f563b623..728a71fb 100644
--- a/components/ActionBar/Footer.tsx
+++ b/components/ActionBar/Footer.tsx
@@ -1,19 +1,23 @@
import { Media } from "components/Media";
-export function DefaultFooter(props: { children?: React.ReactNode }) {
+export function FooterLayout(props: {
+ children?: React.ReactNode;
+ onMouseDown?: (e: React.MouseEvent) => void;
+ noBackground?: boolean;
+}) {
return (
-
{props.children}
-
+
);
}
diff --git a/components/ActionBar/MobileNavigation.tsx b/components/ActionBar/MobileNavigation.tsx
index 494d50ce..8c7093b3 100644
--- a/components/ActionBar/MobileNavigation.tsx
+++ b/components/ActionBar/MobileNavigation.tsx
@@ -71,7 +71,7 @@ export const MobileNavigation = (props: {
return (
diff --git a/components/Toolbar/FootnoteToolbarWrapper.tsx b/components/Toolbar/FootnoteToolbarWrapper.tsx
index 22ec52a3..2798d9f9 100644
--- a/components/Toolbar/FootnoteToolbarWrapper.tsx
+++ b/components/Toolbar/FootnoteToolbarWrapper.tsx
@@ -13,7 +13,8 @@ import { CloseTiny } from "components/Icons/CloseTiny";
type FootnoteToolbarState = "default" | "link";
export const FootnoteToolbar = (props: { pageID: string }) => {
- let [toolbarState, setToolbarState] = useState("default");
+ let [toolbarState, setToolbarState] =
+ useState("default");
let focusedEntity = useUIState((s) => s.focusedEntity);
let activeEditor = useEditorStates((s) =>
focusedEntity ? s.editorStates[focusedEntity.entityID] : null,
@@ -38,7 +39,7 @@ export const FootnoteToolbar = (props: { pageID: string }) => {
{toolbarState === "default" ? (
diff --git a/components/Toolbar/index.tsx b/components/Toolbar/index.tsx
index 6e0a02d1..ecf22ae3 100644
--- a/components/Toolbar/index.tsx
+++ b/components/Toolbar/index.tsx
@@ -86,7 +86,7 @@ export const Toolbar = (props: {
{toolbarState === "default" ? (