aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorHJ <spam@hjkos.com>2018-12-14 14:15:26 +0000
committerHJ <spam@hjkos.com>2018-12-14 14:15:26 +0000
commita158e75a04efb9b876330326b8bc1e03d2c12041 (patch)
treef1f981f14b9af677b4927ace6c9efc648524b9b7 /src/App.js
parent5b6c1aa97c0d13101ebddb4c34b79a2e428ec30b (diff)
parentbd745543b6fa7ede1d08a85379101d5e409b0eab (diff)
Merge branch 'search-mobile-fixes' into 'develop'
Fixes for user-finder on mobile Closes #188 and #179 See merge request pleroma/pleroma-fe!389
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index 89aed01d..4f3fd798 100644
--- a/src/App.js
+++ b/src/App.js
@@ -21,6 +21,7 @@ export default {
},
data: () => ({
mobileActivePanel: 'timeline',
+ finderHidden: true,
supportsMask: window.CSS && window.CSS.supports && (
window.CSS.supports('mask-size', 'contain') ||
window.CSS.supports('-webkit-mask-size', 'contain') ||
@@ -53,7 +54,8 @@ export default {
},
logoBgStyle () {
return Object.assign({
- 'margin': `${this.$store.state.instance.logoMargin} 0`
+ 'margin': `${this.$store.state.instance.logoMargin} 0`,
+ opacity: this.finderHidden ? 1 : 0
}, this.enableMask ? {} : {
'background-color': this.enableMask ? '' : 'transparent'
})
@@ -80,6 +82,9 @@ export default {
logout () {
this.$router.replace('/main/public')
this.$store.dispatch('logout')
+ },
+ onFinderToggled (hidden) {
+ this.finderHidden = hidden
}
}
}