refactor: drop dead 24 code
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/877/head
parent
b2277382b2
commit
9116e2b889
10
src/App.vue
10
src/App.vue
|
@ -7,7 +7,6 @@
|
|||
app-name="memories"
|
||||
v-else-if="!isConfigUnknown"
|
||||
:class="{
|
||||
'remove-gap': removeOuterGap,
|
||||
'has-nav': showNavigation,
|
||||
}"
|
||||
>
|
||||
|
@ -164,11 +163,6 @@ export default defineComponent({
|
|||
}),
|
||||
|
||||
computed: {
|
||||
ncVersion(): number {
|
||||
const version = (<any>window.OC).config.version.split('.');
|
||||
return Number(version[0]);
|
||||
},
|
||||
|
||||
native(): boolean {
|
||||
return nativex.has();
|
||||
},
|
||||
|
@ -213,10 +207,6 @@ export default defineComponent({
|
|||
return this.config.albums_enabled;
|
||||
},
|
||||
|
||||
removeOuterGap(): boolean {
|
||||
return this.ncVersion >= 25;
|
||||
},
|
||||
|
||||
showNavigation(): boolean {
|
||||
if (this.native) {
|
||||
return this.routeIsBase || this.routeIsExplore || (this.routeIsAlbums && !this.$route.params.name);
|
||||
|
|
|
@ -8,7 +8,7 @@ body {
|
|||
}
|
||||
|
||||
// Nextcloud 25+: get rid of gap and border radius at right
|
||||
#content-vue.remove-gap {
|
||||
#content-vue {
|
||||
// was var(--body-container-radius)
|
||||
// now set on #app-navigation-vue
|
||||
border-radius: 0;
|
||||
|
|
Loading…
Reference in New Issue