-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(results): 🐛 Ignore cell content for column size
- Loading branch information
1 parent
38a3ee7
commit 994ae61
Showing
3 changed files
with
77 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { chakra, Fade, Button } from '@chakra-ui/react' | ||
import { Cell as CellProps } from '@tanstack/react-table' | ||
import { ExpandIcon } from 'assets/icons' | ||
import { memo } from 'react' | ||
|
||
type Props = { | ||
cell: CellProps<any> | ||
size: number | ||
isExpandButtonVisible: boolean | ||
cellIndex: number | ||
onExpandButtonClick: () => void | ||
} | ||
|
||
const Cell = ({ | ||
cell, | ||
size, | ||
isExpandButtonVisible, | ||
cellIndex, | ||
onExpandButtonClick, | ||
}: Props) => { | ||
return ( | ||
<chakra.td | ||
key={cell.id} | ||
px="4" | ||
py="2" | ||
border="1px" | ||
borderColor="gray.200" | ||
whiteSpace="nowrap" | ||
wordBreak="normal" | ||
overflow="hidden" | ||
pos="relative" | ||
style={{ | ||
minWidth: size, | ||
maxWidth: size, | ||
}} | ||
> | ||
{cell.renderCell()} | ||
<chakra.span | ||
pos="absolute" | ||
top="0" | ||
right={2} | ||
h="full" | ||
display="inline-flex" | ||
alignItems="center" | ||
> | ||
<Fade unmountOnExit in={isExpandButtonVisible && cellIndex === 1}> | ||
<Button | ||
leftIcon={<ExpandIcon />} | ||
shadow="lg" | ||
size="xs" | ||
onClick={onExpandButtonClick} | ||
> | ||
Open | ||
</Button> | ||
</Fade> | ||
</chakra.span> | ||
</chakra.td> | ||
) | ||
} | ||
|
||
export default memo( | ||
Cell, | ||
(prev, next) => | ||
prev.size === next.size && | ||
prev.isExpandButtonVisible === next.isExpandButtonVisible | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
994ae61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
viewer-v2 – ./apps/viewer
bergamo.store
chat.hayuri.id
app.yvon.earth
bot.tvbeat.it
bot.jesopizz.it
yoda.riku.ai
talk.gocare.io
gollum.riku.ai
bots.bridge.ai
bot.joof.it
fitness.riku.ai
zap.fundviser.in
bot.rihabilita.it
chatbot.matthesv.de
bot.contakit.com
viewer.typebot.io
demo.wemakebots.xyz
88584434.therpm.club
bot.danyservice.it
bot.dsignagency.com
92109660.therpm.club
bot.barrettamario.it
hello.advergreen.com
bot.coachayongzul.com
bot.digitalpointer.id
bot.eikju.photography
bot.outstandbrand.com
bot.robertohairlab.it
criar.somaperuzzo.com
bot.ilmuseoaiborghi.it
bot.pratikmandalia.com
michaeljackson.riku.ai
form.bridesquadapp.com
87656003.actualizar.xyz
88152257.actualizar.xyz
arrivalx2.wpwakanda.com
91375310.actualizar.xyz
link.venturasuceder.com
bot.amicidisanfaustino.it
invite.bridesquadapp.com
bot.hotelplayarimini.it
chat.thehomebuyersusa.com
typebot-viewer.vercel.app
casestudyemb.wpwakanda.com
forms.hiabhaykulkarni.com
chat.atlasoutfittersk9.com
bot.adventureconsulting.hu
herbalife.barrettamario.it
liveconvert.kandalearn.com
homepageonly.wpwakanda.com
mainmenu1one.wpwakanda.com
tarian.theiofoundation.org
bot.polychromes-project.com
bot.pinpointinteractive.com
bot.seidibergamoseanchetu.it
forms.escoladeautomacao.com.br
liveconvert2.kandalearn.com
viewer-v2-typebot-io.vercel.app
bot.seidinembroseanchetu.it
viewer-v2-git-main-typebot-io.vercel.app
bot.studiotecnicoimmobiliaremerelli.it
994ae61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
viewer-v2-alpha – ./apps/viewer
vhpage.cr8.ai
an.nigerias.io
apr.nigerias.io
sat.cr8.ai
bot.aws.bj
ar.nigerias.io
apo.nigerias.io
aso.nigerias.io
am.nigerias.io
bt.id8rs.com
chat.sureb4.com
eventhub.com.au
clo.closeer.work
feedback.ofx.one
faqs.nigerias.io
bot.upfunnel.art
games.klujo.com
bot.piccinato.co
sakuranembro.it
stan.vselise.com
voicehelp.cr8.ai
app.chatforms.net
bot.agfunnel.tech
bot.maitempah.com
ov3.wpwakanda.com
ov2.wpwakanda.com
gentleman-shop.fr
ov1.wpwakanda.com
sell.applepie.pro
admin.applepie.pro
goalsettingbot.com
zap.techadviser.in
bot.eventhub.com.au
forms.webisharp.com
this-is-a-test.com
bot.cotemeuplano.com
typebot.stillio.com
bot.ansuraniphone.my
order.maitempah.com
chat.hayurihijab.com
get.freebotoffer.xyz
abutton.wpwakanda.com
bbutton.wpwakanda.com
cdd.searchcube.com.sg
bot.meuesocial.com.br
bot.incusservices.com
sbutton.wpwakanda.com
apply.ansuraniphone.my
c23111azqw.nigerias.io
chat.missarkansas.org
bbutton.wpwwakanda.com
felipewelington.com.br
form.searchcube.com.sg
kodawariab736.skeep.it
gcase.barrettamario.it
info.clickasuransi.com
83242573.actualizar.xyz
view.onlinebotdemo.xyz
bot.upgradesolutions.eu
mainmenu.diddancing.com
subfooter.wpwakanda.com
91181264.your-access.one
form.sergiolimajr.com.br
type.opaulovieira.com.br
hunterbot.saleshunter.ai
bot.cabinrentalagency.com
aibot.angrybranding.co.uk
boyfriend-breakup.riku.ai
type.dericsoncalari.com.br
designguide.techyscouts.com
presente.empresarias.com.mx
onboarding.libertydreamcare.ie
piazzatorre.barrettamario.it
type.talitasouzamarques.com.br
bot.comercializadoraomicron.com
agendamento.sergiolimajr.com.br
personal-trainer.barrettamario.it
bookings.littlepartymonkeys.com
studiotecnicoimmobiliaremerelli.it
preagendamento.sergiolimajr.com.br
viewer-v2-alpha-typebot-io.vercel.app
viewer-v2-alpha-git-main-typebot-io.vercel.app
994ae61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./apps/docs
docs-typebot-io.vercel.app
docs.typebot.io
docs-git-main-typebot-io.vercel.app
994ae61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
builder-v2 – ./apps/builder
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io