Skip to content

Commit

Permalink
semantic improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Oct 3, 2020
1 parent bbb4976 commit b020a57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ module.exports = {
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/no-use-v-if-with-v-for': 'warn',
}
}
6 changes: 3 additions & 3 deletions src/components/LinkRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
>

<button
class="h-full mx-1 px-2 rounded-full font-bold hover:bg-gray-400 dark:hover:bg-gray-700 focus:outline-none transition-colors duration-75"
class="h-full mx-1 px-2 rounded-full font-bold sm:hover:bg-gray-400 dark:sm:hover:bg-gray-700 focus:outline-none transition-colors duration-75"
@click="copyLinkToClipboard"
>
<transition
Expand Down Expand Up @@ -97,7 +97,7 @@
>

<button
class="h-full mx-1 px-2 rounded-full font-bold hover:bg-gray-400 dark:hover:bg-gray-700 focus:outline-none transition-colors duration-75"
class="h-full mx-1 px-2 rounded-full font-bold sm:hover:bg-gray-400 dark:sm:hover:bg-gray-700 focus:outline-none transition-colors duration-75"
@click="shareLink"
>
<svg
Expand Down Expand Up @@ -126,7 +126,7 @@
class="w-auto text-center flex-shrink-0 border-l border-black dark:border-gray-700 flex flex-col justify-center"
>
<button
class="h-full mx-1 px-2 rounded-full font-bold hover:bg-gray-400 dark:hover:bg-gray-700 focus:outline-none transition-colors duration-75"
class="h-full mx-1 px-2 rounded-full font-bold sm:hover:bg-gray-400 dark:sm:hover:bg-gray-700 focus:outline-none transition-colors duration-75"
@click="openNewTab(`https://www.virustotal.com/gui/search/${doubleEncodedUrl}`)"
>

Expand Down
9 changes: 5 additions & 4 deletions src/views/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@
leave-to-class="-translate-x-64 opacity-0 w-0"
>
<div
v-if="index == activeTipIndex"
:key="activeTipIndex"
class="h-auto flex flex-col justify-center break-words leading-4"
v-for="(tip, index) of tips"
:key="index"
>
<span>{{ tip }}</span>
<span>{{ activeTip }}</span>
</div>
</transition>
</div>
Expand Down Expand Up @@ -147,6 +145,9 @@ export default {
},
isLandscape: function() {
return this.orientation === 'landscape-primary';
},
activeTip: function() {
return this.tips[this.activeTipIndex];
}
},
methods: {
Expand Down

0 comments on commit b020a57

Please sign in to comment.