Remove resize handles from input fields (#67)
This commit is contained in:
parent
bad58652b8
commit
50eb9bd4bd
|
@ -81,7 +81,7 @@ export function CreateAnswerPanel(props: {
|
|||
<Textarea
|
||||
value={text}
|
||||
onChange={(e) => setText(e.target.value)}
|
||||
className="textarea textarea-bordered w-full"
|
||||
className="textarea textarea-bordered w-full resize-none"
|
||||
placeholder="Type your answer..."
|
||||
rows={1}
|
||||
maxLength={10000}
|
||||
|
@ -117,7 +117,7 @@ export function CreateAnswerPanel(props: {
|
|||
</Row>
|
||||
</Row>
|
||||
|
||||
<Row className="justify-between gap-4 text-sm items-center">
|
||||
<Row className="items-center justify-between gap-4 text-sm">
|
||||
<Row className="flex-nowrap items-center gap-2 whitespace-nowrap text-gray-500">
|
||||
<div>
|
||||
Estimated <br /> payout if chosen
|
||||
|
|
|
@ -237,7 +237,7 @@ export function FeedBet(props: {
|
|||
<Textarea
|
||||
value={comment}
|
||||
onChange={(e) => setComment(e.target.value)}
|
||||
className="textarea textarea-bordered w-full"
|
||||
className="textarea textarea-bordered w-full resize-none"
|
||||
placeholder="Add a comment..."
|
||||
rows={3}
|
||||
maxLength={MAX_COMMENT_LENGTH}
|
||||
|
@ -278,7 +278,7 @@ function EditContract(props: {
|
|||
return editing ? (
|
||||
<div className="mt-4">
|
||||
<Textarea
|
||||
className="textarea textarea-bordered mb-1 h-24 w-full"
|
||||
className="textarea textarea-bordered mb-1 h-24 w-full resize-none"
|
||||
rows={3}
|
||||
value={text}
|
||||
onChange={(e) => setText(e.target.value || '')}
|
||||
|
@ -707,7 +707,7 @@ function FeedAnswerGroup(props: {
|
|||
</div>
|
||||
|
||||
<Row className="align-items justify-between gap-4">
|
||||
<span className="text-lg whitespace-pre-line">
|
||||
<span className="whitespace-pre-line text-lg">
|
||||
<Linkify text={text} />
|
||||
</span>
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ export function NewContract(props: { question: string; tag?: string }) {
|
|||
<InfoTooltip text="Optional. Describe how you will resolve this market." />
|
||||
</label>
|
||||
<Textarea
|
||||
className="textarea textarea-bordered w-full"
|
||||
className="textarea textarea-bordered w-full resize-none"
|
||||
rows={3}
|
||||
maxLength={MAX_DESCRIPTION_LENGTH}
|
||||
placeholder={descriptionPlaceholder}
|
||||
|
|
|
@ -195,7 +195,7 @@ ${TEST_VALUE}
|
|||
|
||||
<Textarea
|
||||
placeholder="e.g. This market is part of the ACX predictions for 2022..."
|
||||
className="input"
|
||||
className="input resize-none"
|
||||
value={description}
|
||||
onChange={(e) => setDescription(e.target.value || '')}
|
||||
/>
|
||||
|
|
|
@ -41,7 +41,7 @@ function EditUserField(props: {
|
|||
|
||||
{field === 'bio' ? (
|
||||
<Textarea
|
||||
className="textarea textarea-bordered w-full"
|
||||
className="textarea textarea-bordered w-full resize-none"
|
||||
value={value}
|
||||
onChange={(e) => setValue(e.target.value)}
|
||||
onBlur={updateField}
|
||||
|
|
Loading…
Reference in New Issue
Block a user