Skip to content

Commit

Permalink
feat: remove zoom setting (useless)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 15, 2020
1 parent 1348ff1 commit cbcd97b
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 41 deletions.
13 changes: 0 additions & 13 deletions assets/css/general/settingsRelated.css

This file was deleted.

1 change: 0 additions & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

/* Styling to classes like .btn, .card etc. should be here */

@import './general/settingsRelated.css';
@import './general/general.css';

/*
Expand Down
12 changes: 1 addition & 11 deletions components/pages/posts/content/Post.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<template>
<figure
v-if="post"
:class="{ zoom: settings.zoom.value }"
class="text-center material-container text-default-text"
>
<figure v-if="post" class="text-center material-container text-default-text">
<post-media :post="post" @click.native="isActive = !isActive" />

<figcaption class="flex flex-wrap overflow-hidden text-sm">
Expand All @@ -15,8 +11,6 @@
</template>

<script>
import { mapState } from 'vuex'
// Components
import PostMedia from './PostMedia.vue'
import PostTags from './PostTags.vue'
Expand All @@ -41,9 +35,5 @@ export default {
isActive: false,
}
},
computed: {
...mapState('user', ['settings']),
},
}
</script>
2 changes: 1 addition & 1 deletion components/utils/ContentContainer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<!-- Loop for every info container -->
<article class="material-container" :class="{ zoom: settings.zoom.value }">
<article class="material-container">
<!-- If separator -->
<template v-if="separator">
<div class="p-3 bg-gradient-blue-lilac">
Expand Down
5 changes: 0 additions & 5 deletions pages/about.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<main class="flex h-screen p-3">
<a
:class="{ zoom: settings.zoom.value }"
href="https://akbal.dev/"
target="_blank"
rel="noopener"
Expand Down Expand Up @@ -34,11 +33,7 @@
</template>

<script>
import { mapState } from 'vuex'
export default {
computed: mapState('user', ['settings']),
head() {
return {
title: 'About',
Expand Down
10 changes: 0 additions & 10 deletions store/user/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ export const state = () => ({
defaultValue: true,
},

// TODO: slider for how much zoom
zoom: {
name: 'Hover Zoom',
description:
'Zoom posts when you hover over them, not really useful, but quite amusing.',
image: '/img/usage_examples/hover-zoom',
value: false,
defaultValue: false,
},

lazyLoading: {
name: 'Lazy load',
description:
Expand Down

0 comments on commit cbcd97b

Please sign in to comment.