User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
3y
can you somehow detect in vue or something when the text gets longer than one line
2
0
0
0
User avatar
ek3 ew cgfs @EpicKitty@mk.catgirlsfor.science
3y
@jeder If you know the line height of the text, you can check to see if the element height is greater than that
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
3y
@EpicKitty i know font-size which is 1.1em idk if thats enough
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
3y
@EpicKitty like, yeah
2
0
0
0
User avatar
ek3 ew cgfs @EpicKitty@mk.catgirlsfor.science
3y
@jeder Well a single line of text will have a determined height, based on padding and the current line-height. You can do clientHeight on the element to determine that. So if it's supposed to be 20px high and it's showing 35px instead, it's multiline
⭐1
1
0
0
1
User avatar
ek3 ew cgfs @EpicKitty@mk.catgirlsfor.science
3y
@jeder Can you fire across the vue component for it so I can take a look?
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
3y
@EpicKitty it is iceshrimp.dev/jeder/iceshrimp/src/branch/mrrp/packages/client/src/components/MkSubNoteContent.vue
1
0
0
0
User avatar
ek3 ew cgfs @EpicKitty@mk.catgirlsfor.science
3y
@jeder Okay, so yeah, you'd be able to check the height of the component defined on line 2 which if it's a single line, it will be a predetermined height that you'd be able to know
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
3y
@EpicKitty i'll probably enter vc today with this since
0
0
0
0