refactor: drop dead 24 code

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/877/head
Varun Patil 2023-10-16 11:36:28 -07:00
parent b2277382b2
commit 9116e2b889
2 changed files with 1 additions and 11 deletions

View File

@ -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);

View File

@ -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;