Skip to content

Commit 003122f

Browse files
committed
use absolute value for card text position instead of translateY
1 parent 705423f commit 003122f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/components/YdCard.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export default {
329329
max-width: 100%;
330330
text-align: center;
331331
position: absolute;
332-
top: 66%;
332+
top: 68%;
333333
left: 12.18%;
334334
right: 12.82%;
335335
height: 20%;
@@ -353,12 +353,6 @@ export default {
353353
color: rgb(80,45,17);
354354
}
355355
356-
.card-text div {
357-
position: relative;
358-
top: 50%;
359-
transform: translateY(-50%);
360-
}
361-
362356
.yd-card .card-edit-button {
363357
max-width: 30%;
364358
content: url("../../static/img/edit.png");

0 commit comments

Comments
 (0)