fix(events): let the event card shrink below its truncated rows (min-w-0) #152
1 changed files with 7 additions and 1 deletions
|
|
@ -72,8 +72,14 @@ const isNonApproved = computed(
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<!-- `min-w-0`: the card is a grid item, and a grid item's default
|
||||||
|
`min-width: auto` resolves to its min-content width. The nowrap
|
||||||
|
`truncate` rows below (location, organizer) contribute their
|
||||||
|
full text width to that, so a long address would widen the
|
||||||
|
whole column past the viewport on phones. Letting the item
|
||||||
|
shrink is what makes `truncate` actually truncate. -->
|
||||||
<Card
|
<Card
|
||||||
class="relative cursor-pointer hover:shadow-lg transition-shadow duration-200"
|
class="relative min-w-0 cursor-pointer hover:shadow-lg transition-shadow duration-200"
|
||||||
@click="emit('click', event)"
|
@click="emit('click', event)"
|
||||||
>
|
>
|
||||||
<!-- Wash-out wrapper. The pending/rejected status badge below sits
|
<!-- Wash-out wrapper. The pending/rejected status badge below sits
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue