Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix header height on mobile

ammarahm-ed645eab4d9489
diff --git a/apps/mobile/src/components/LoginDialog/index.js b/apps/mobile/src/components/LoginDialog/index.js
index bb34c1340..7a87ed32f 100644
--- a/apps/mobile/src/components/LoginDialog/index.js
+++ b/apps/mobile/src/components/LoginDialog/index.js
@@ -522,7 +522,7 @@ const LoginDialog = () => {
}}>
{DDS.isTab ? (
<TouchableOpacity
- onPress={close}
+ onPress={MODES.sessionExpired !== mode && close}
style={{
width: '100%',
height: '100%',
diff --git a/apps/mobile/src/components/SimpleList/card.js b/apps/mobile/src/components/SimpleList/card.js
index d8c37406f..ff9194107 100644
--- a/apps/mobile/src/components/SimpleList/card.js
+++ b/apps/mobile/src/components/SimpleList/card.js
@@ -11,7 +11,7 @@ import Paragraph from '../Typography/Paragraph';
export const Card = ({color}) => {;
const selectionMode = useSelectionStore(state => state.selectionMode);
const messageBoardState = useMessageStore(state => state.message);
- const announcement = useMessageStore().announcement;
+ const announcement = useMessageStore(state => state.announcement);
const deviceMode = useSettingStore(state => state.settings)
return !messageBoardState.visible || selectionMode || announcement ? null : (
diff --git a/apps/mobile/src/components/SimpleList/header.js b/apps/mobile/src/components/SimpleList/header.js
index 8934847e9..0cbdd79af 100644
--- a/apps/mobile/src/components/SimpleList/header.js
+++ b/apps/mobile/src/components/SimpleList/header.js
@@ -35,7 +35,6 @@ export const Header = React.memo(
) : type === 'search' ? null : deviceMode !== "mobile" && !shouldShow ? (
<View
style={{
- minHeight: 50,
marginBottom: 5,
padding: 0,
width: '100%',