SethThoburn on Nostr: Correct answer has already been posted with float, but here is a solution for React ...
Correct answer has already been posted with float, but here is a solution for React Native where float isn't available. Not a pure css solution, it's a bit inelegant since it measures the elements, but I think it handles all the edge cases and works nicely.
https://snack.expo.dev/@seththoburn/awkward-cerealPublished at
2023-06-16 22:03:16Event JSON
{
"id": "41b05aa41ddcbf8b899cbf86439d8f1e81c655ebe05fdf9b1e78eb987e6a0353",
"pubkey": "011c1b374c12fbd3633e98957d3c46bed67983abecef50706c73a77c171d0d2c",
"created_at": 1686952996,
"kind": 1,
"tags": [
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"wss://nos.lol",
"hodlbod"
],
[
"e",
"aa60c0792cee9daac7803f6c16ac39d4881823be748020cc206ff887bd538b3a",
"wss://nos.lol",
"root"
],
[
"client",
"coracle"
]
],
"content": "Correct answer has already been posted with float, but here is a solution for React Native where float isn't available. Not a pure css solution, it's a bit inelegant since it measures the elements, but I think it handles all the edge cases and works nicely.\n\nhttps://snack.expo.dev/@seththoburn/awkward-cereal",
"sig": "d369ef629c47ef5ba4f84f09ccbc40e86eca9f788c010f5f960cad106cbf09c02cb78028de3cddf6ba2c04742151e3ad0200ea58e44e786551ca640711683452"
}