mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
Use input instead of textarea
This commit is contained in:
parent
17e2b91230
commit
542c2586f1
2 changed files with 16 additions and 3 deletions
|
@ -76,4 +76,16 @@ div.room-view.preview > div.preview-inner {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
> .knock-input {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
> input {
|
||||||
|
padding: 0.25rem;
|
||||||
|
margin: 0;
|
||||||
|
outline: none;
|
||||||
|
border-radius: .25rem;
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,10 +181,11 @@ const RoomPreview = ({ roomID, via, alias, invite }: RoomPreviewProps) => {
|
||||||
</details>}
|
</details>}
|
||||||
{invite?.invited_by && <MutualRooms client={client} userID={invite.invited_by}/>}
|
{invite?.invited_by && <MutualRooms client={client} userID={invite.invited_by}/>}
|
||||||
{requiresKnock && <div className="knock-input">
|
{requiresKnock && <div className="knock-input">
|
||||||
<textarea
|
<input
|
||||||
onChange={event => setKnockRequest(event.currentTarget.value)}
|
onChange={event => setKnockRequest(event.currentTarget.value)}
|
||||||
placeholder="Why do you want to join this room?">
|
placeholder="Why do you want to join this room?"
|
||||||
</textarea>
|
value={knockRequest ?? ""}
|
||||||
|
/>
|
||||||
</div>}
|
</div>}
|
||||||
<div className="buttons">
|
<div className="buttons">
|
||||||
{invite && <button
|
{invite && <button
|
||||||
|
|
Loading…
Add table
Reference in a new issue