From d7cf6b3718ec771371386b12c16745a8f285006a Mon Sep 17 00:00:00 2001 From: Rohan Verma Date: Sun, 10 Feb 2019 19:23:45 +0530 Subject: [PATCH] fix: inline svg breaks size #9 vaso2/nuxt-fontawesome --- .eslintrc.js | 21 +++++++++++++++++++++ .gitignore | 2 ++ .prettierrc | 9 +++++++++ assets/css/main.css | 5 +++++ components/ProfileList.vue | 8 ++++---- 5 files changed, 41 insertions(+), 4 deletions(-) create mode 100755 .eslintrc.js create mode 100644 .prettierrc diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100755 index 0000000..f807de9 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,21 @@ +module.exports = { + root: true, + env: { + browser: true, + node: true + }, + parserOptions: { + parser: 'babel-eslint' + }, + extends: [ + // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention + // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. + 'plugin:vue/essential' + ], + // required to lint *.vue files + plugins: [ + 'vue' + ], + // add your custom rules here + rules: {} +} diff --git a/.gitignore b/.gitignore index 185e663..b0d062f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ yarn-error.log* *.njsproj *.sln *.sw* + +.nuxt \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..ad1ee79 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "bracketSpacing": true, + "printWidth": 100, + "semi": false, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "none", + "useTabs": false +} diff --git a/assets/css/main.css b/assets/css/main.css index e205e50..8029d70 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -68,3 +68,8 @@ body { .btn-indigo:hover { @apply bg-indigo text-white; } + +/* Temporary fix for https://github.com/vaso2/nuxt-fontawesome/issues/9 */ +.fix-fa-inlined span{ + width: 1em !important; +} \ No newline at end of file diff --git a/components/ProfileList.vue b/components/ProfileList.vue index 6b12760..9bbda79 100644 --- a/components/ProfileList.vue +++ b/components/ProfileList.vue @@ -1,16 +1,16 @@