@ -168,17 +168,16 @@ export function StreamEditor({ ev, onFinish, options }: StreamEditorProps) {
|
||||
)}
|
||||
{(options?.canSetSummary ?? true) && (
|
||||
<StreamInput label={<FormattedMessage defaultMessage="Summary" />}>
|
||||
<input
|
||||
type="text"
|
||||
placeholder={formatMessage({ defaultMessage: "A short description of the content" })}
|
||||
<textarea
|
||||
rows={5}
|
||||
placeholder={formatMessage({ defaultMessage: "A description of the stream" })}
|
||||
value={summary}
|
||||
onChange={e => setSummary(e.target.value)}
|
||||
/>
|
||||
onChange={e => setSummary(e.target.value)} />
|
||||
</StreamInput>
|
||||
)}
|
||||
{(options?.canSetImage ?? true) && (
|
||||
<StreamInput label={<FormattedMessage defaultMessage="Cover Image" />}>
|
||||
{image && <img src={image} className="mb-2 aspect-video object-cover rounded-xl" />}
|
||||
{image && <img src={image} className="mb-2 aspect-video object-cover rounded-xl max-h-[200px] mx-auto" />}
|
||||
<div className="flex gap-2">
|
||||
<input type="text" placeholder="https://" value={image} onChange={e => setImage(e.target.value)} />
|
||||
<FileUploader onResult={v => setImage(v ?? "")} onError={e => setError(e.toString())} />
|
||||
|
Reference in New Issue
Block a user