cesardias on Nostr: With just the max-height you won't be able to render the "view more" button as you ...
With just the max-height you won't be able to render the "view more" button as you don't know, I am using react-use-measure to measure the post height to them show the button, i am not very happy with this solution as it cause the post content to render twice in case the condition is true, wish there was a css only solution for that.
Published at
2025-01-24 06:15:40Event JSON
{
"id": "0b69cd93990b4eb1fa77e68adfd981c7cafc2511788587c8f603698372905e78",
"pubkey": "c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e",
"created_at": 1737699340,
"kind": 1,
"tags": [
[
"e",
"052a1cdb56e70ad538bf447855a45d543be7b5c522960c7ef9d60bffc1562ca5",
"wss://relay.damus.io",
"root",
"3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24"
],
[
"e",
"54d1c273a700c9520092a89258136ca50a9d91fe7451e629acbc01a7ddf42e36",
"wss://relay.damus.io",
"reply",
"a9434ee165ed01b286becfc2771ef1705d3537d051b387288898cc00d5c885be"
],
[
"p",
"a9434ee165ed01b286becfc2771ef1705d3537d051b387288898cc00d5c885be"
],
[
"client",
"nosotros",
"31990:c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e:1728437063755"
]
],
"content": "With just the max-height you won't be able to render the \"view more\" button as you don't know, I am using react-use-measure to measure the post height to them show the button, i am not very happy with this solution as it cause the post content to render twice in case the condition is true, wish there was a css only solution for that.",
"sig": "fb7451f5d2d37852a00e36e5fe2e69bf255adf390a71f1b964164e07d237839a68941fa935bdd26c83b21536ead2abe91438fbc6b73feab5de1560125a2d36f5"
}