Skip to content

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

hide containerTopSection in selectionMode

ammarahm-ed9efbef49dd21
diff --git a/apps/mobile/src/components/Container/ContainerTopSection.js b/apps/mobile/src/components/Container/ContainerTopSection.js
index bbb3fc472..bf3b32a51 100644
--- a/apps/mobile/src/components/Container/ContainerTopSection.js
+++ b/apps/mobile/src/components/Container/ContainerTopSection.js
@@ -7,18 +7,12 @@ export const ContainerTopSection = ({children}) => {
const [state] = useTracked();
const {colors, selectionMode} = state;
- return (
+ return !selectionMode && (
<View
style={{
backgroundColor: colors.bg,
width: '100%',
- opacity: selectionMode ? 0 : 1,
overflow: 'hidden',
- transform: [
- {
- translateY: selectionMode ? -150 : 0,
- },
- ],
}}>
{children}
</View>
diff --git a/apps/mobile/src/components/SelectionHeader/index.js b/apps/mobile/src/components/SelectionHeader/index.js
index 097f54a3f..2c8e54976 100644
--- a/apps/mobile/src/components/SelectionHeader/index.js
+++ b/apps/mobile/src/components/SelectionHeader/index.js
@@ -61,7 +61,6 @@ export const SelectionHeader = ({screen}) => {
<View
style={{
width: '100%',
- position:"absolute",
height: 50 + insets.top,
paddingTop: insets.top,
backgroundColor: colors.accent,