Remove dead code

This commit is contained in:
itepechi 2023-09-27 05:28:29 +09:00
parent d53fc6923f
commit e01dce03d8
3 changed files with 1 additions and 14 deletions

View file

@ -51,7 +51,6 @@ export default {
ConfirmModal ConfirmModal
}, },
data: () => ({ data: () => ({
searchBarHidden: true,
supportsMask: window.CSS && window.CSS.supports && ( supportsMask: window.CSS && window.CSS.supports && (
window.CSS.supports('mask-size', 'contain') || window.CSS.supports('mask-size', 'contain') ||
window.CSS.supports('-webkit-mask-size', 'contain') || window.CSS.supports('-webkit-mask-size', 'contain') ||
@ -77,8 +76,7 @@ export default {
}, },
logoBgStyle () { logoBgStyle () {
return Object.assign({ return Object.assign({
'margin': `${this.$store.state.instance.logoMargin} 0`, 'margin': `${this.$store.state.instance.logoMargin} 0`
opacity: this.searchBarHidden ? 1 : 0
}, this.enableMask ? {} : { }, this.enableMask ? {} : {
'background-color': this.enableMask ? '' : 'transparent' 'background-color': this.enableMask ? '' : 'transparent'
}) })
@ -120,9 +118,6 @@ export default {
scrollToTop () { scrollToTop () {
window.scrollTo(0, 0) window.scrollTo(0, 0)
}, },
onSearchBarToggled (hidden) {
this.searchBarHidden = hidden
},
openSettingsModal () { openSettingsModal () {
this.$store.dispatch('openSettingsModal') this.$store.dispatch('openSettingsModal')
}, },

View file

@ -56,13 +56,6 @@
.logo { .logo {
grid-area: logo; grid-area: logo;
position: relative; position: relative;
transition: opacity;
transition-timing-function: ease-out;
transition-duration: 100ms;
@media all and (min-width: 800px) {
opacity: 1 !important;
}
.mask { .mask {
mask-repeat: no-repeat; mask-repeat: no-repeat;

View file

@ -98,7 +98,6 @@
<div class="item right actions"> <div class="item right actions">
<search-bar <search-bar
v-if="currentUser || !privateMode" v-if="currentUser || !privateMode"
@toggled="onSearchBarToggled"
@click.stop @click.stop
/> />
<div <div