REMOVE text-fitter
This commit is contained in:
parent
e08f1565f9
commit
a1ee266356
@ -67,7 +67,3 @@ Resumes are being exported with [Electroshot](https://github.com/mixu/electrosho
|
||||
### Box Shadows
|
||||
|
||||
[Electroshot](https://github.com/mixu/electroshot) uses Electron to generate PDF-files. Since Chrome does not export box-shadows properly, every resume uses [chrome-shadow-fixer](https://github.com/salomonelli/chrome-shadow-fixer).
|
||||
|
||||
### Text Adjustment
|
||||
|
||||
[text-fitter](https://github.com/salomonelli/chrome-shadow-fixer) is used to adjust the content proportionally to fit the page and keep the resume layout and design. No matter how long a CV may be, the content will be resized to fit the page.
|
||||
|
||||
@ -21,7 +21,6 @@
|
||||
"raleway-webfont": "^3.0.1",
|
||||
"roboto-fontface": "^0.7.0",
|
||||
"source-sans-pro": "^2.0.10",
|
||||
"text-fitter": "^1.0.1",
|
||||
"vue": "^2.3.4",
|
||||
"vue-router": "^2.3.1"
|
||||
},
|
||||
|
||||
@ -11,13 +11,10 @@
|
||||
<script>
|
||||
import Vue from 'vue';
|
||||
import * as chromeShadowFixer from 'chrome-shadow-fixer';
|
||||
import * as textFitter from 'text-fitter';
|
||||
import '../resumes/resumes';
|
||||
export default Vue.component('resume', {
|
||||
name: 'app',
|
||||
mounted: () => {
|
||||
const pageElements = document.querySelectorAll('.page-inner');
|
||||
textFitter.fix(pageElements, false);
|
||||
chromeShadowFixer.fix();
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user