Skip to content

Commit fa57b4f

Browse files
committed
add another condition for Artificial Intelligence Implants card name which is 32 characters, it should probably be renamed
1 parent f69c2d6 commit fa57b4f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/components/CardModel.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,16 @@ export default {
119119
}
120120
const isAllCaps = text === text.toUpperCase();
121121
const length = text.length;
122-
if (length >= 20) {
122+
if (length >= 25) {
123+
baselineEm = isAllCaps ? 0.5 : 0.6;
124+
}
125+
else if (length >= 20) {
123126
baselineEm = isAllCaps ? 0.7 : 0.8;
124-
} else if (length >= 18) {
127+
}
128+
else if (length >= 18) {
125129
baselineEm = isAllCaps ? 0.9 : 1.0;
126-
} else if (length >= 15 && isAllCaps) {
130+
}
131+
else if (length >= 15 && isAllCaps) {
127132
baselineEm = 0.9;
128133
}
129134
return baselineEm;

0 commit comments

Comments
 (0)