We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9b5c69 commit 831a467Copy full SHA for 831a467
src/components/CardModel.vue
@@ -107,7 +107,6 @@ export default {
107
resolveImage(path) {
108
return require('../assets/images/cards/' + path);
109
},
110
-
111
/**
112
* Adjusts the size of the font to be displayed on a CardModel
113
* based on the length of the text and whether it is all caps.
@@ -117,6 +116,9 @@ export default {
117
116
*/
118
adjustFontSize(text) {
119
let baselineEm = 1.1;
+ if (!text) {
120
+ return baselineEm;
121
+ }
122
const isAllCaps = text === text.toUpperCase();
123
const length = text.length;
124
if (length >= 20) {
0 commit comments