Skip to content

Commit

Permalink
refactor: tiny visual tweaks (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev authored Aug 5, 2020
1 parent 524488a commit 5312ac6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
8 changes: 2 additions & 6 deletions app/frontend/js/components/Index/GridView/GridItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@
</div>
</router-link>
<div class="flex flex-col justify-between p-4 flex-1">
<div class="font-semibold leading-tight mb-2">
{{title}}
</div>
<div class="mb-6">
{{body}}
</div>
<div class="font-semibold leading-tight mb-2 text-lg" v-text="title" />
<div class="mb-6 text-sm" v-text="body" />
<div class="w-full">
<item-controls
class="flex flex-row justify-around w-full"
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/js/components/Index/GridView/ResourceGrid.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="w-full grid grid-cols-3 gap-6">
<div class="w-full grid grid-cols-3 xl:grid-cols-4 gap-6">
<div
is="grid-item"
v-for="(resource, index) in resources"
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/js/mixins/has-input-appearance.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
data: () => ({
inputClasses: 'appearance-none inline-flex bg-gray-200 disabled:bg-gray-400 focus:bg-white text-gray-700 disabled:text-gray-600 rounded-md py-3 px-3 leading-tight border border-gray-200 focus:border-gray-300 outline',
inputClasses: 'appearance-none inline-flex bg-gray-200 disabled:bg-gray-400 focus:bg-white text-gray-700 disabled:text-gray-600 rounded-md py-3 px-3 leading-tight border border-gray-300 outline-none focus:border-gray-400 outline',
}),
}
2 changes: 0 additions & 2 deletions app/frontend/packs/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Avo from '@/js/Avo'
document.addEventListener('DOMContentLoaded', Avo.init)

Mousetrap.bind('r r r', () => Avo.reload())
// import '@/js/bootstrap'
// import '@/js/vue'

// Uncomment to copy all static images under ../images to the output folder and reference
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
Expand Down
6 changes: 3 additions & 3 deletions config/webpacker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ development:
dev_server:
https: false
host: localhost
port: 3035
public: localhost:3035
port: 3039
public: localhost:3039
hmr: true
# Inline should be set to true if using HMR
inline: true
Expand Down Expand Up @@ -95,7 +95,7 @@ production:
compile: false

# Extract and emit a css file
extract_css: false
extract_css: true

# Cache manifest.json for performance
cache_manifest: true

0 comments on commit 5312ac6

Please sign in to comment.