🚸 (bot) Display inputs to the right s…
This commit is contained in:
@@ -53,10 +53,10 @@ export const ChoiceForm = ({ block, onSubmit }: ChoiceFormProps) => {
|
|||||||
block.items.length === 1
|
block.items.length === 1
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<form className="flex flex-col" onSubmit={handleSubmit}>
|
<form className="flex flex-col items-end" onSubmit={handleSubmit}>
|
||||||
<div className="flex flex-wrap">
|
<div className="flex flex-wrap justify-end">
|
||||||
{block.items.map((item, idx) => (
|
{block.items.map((item, idx) => (
|
||||||
<span key={item.id} className="relative inline-flex mr-2 mb-2">
|
<span key={item.id} className="relative inline-flex ml-2 mb-2">
|
||||||
<button
|
<button
|
||||||
role={block.options?.isMultipleChoice ? 'checkbox' : 'button'}
|
role={block.options?.isMultipleChoice ? 'checkbox' : 'button'}
|
||||||
onClick={handleClick(idx)}
|
onClick={handleClick(idx)}
|
||||||
|
|||||||
Reference in New Issue
Block a user