Skip to content

Commit 7e45474

Browse files
committed
fix: use text box instead of input for alt-text
1 parent 57ed6fb commit 7e45474

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

apps/vscode/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 1.119.0 (unreleased)
44

5+
- Visual Editor: "Inset image" command now uses a text box for the alternative text. (<https://github.com/quarto-dev/quarto/pull/599>)
6+
57
## 1.118.0 (Release on 2024-11-26)
68

79
- Provide F1 help at cursor in Positron (<https://github.com/quarto-dev/quarto/pull/599>)

packages/editor-ui/src/dialogs/edit-image.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ import {
2828
useId,
2929
RadioGroup,
3030
Label,
31-
Radio
31+
Radio,
32+
Textarea
3233
} from "@fluentui/react-components";
3334

3435
import { ModalDialog, ModalDialogTabList, showValueEditorDialog} from "ui-widgets";
@@ -162,10 +163,11 @@ const imagePanel =
162163

163164
{alt !== undefined
164165
? <Field label={t("Alternative text")}>
165-
<Input
166-
value={alt}
166+
<Textarea
167+
value={alt}
167168
onChange={(_ev, data) => setAlt(data.value)}
168169
placeholder={t("(Optional)")}
170+
style={{ height: "100px" }}
169171
/>
170172
</Field>
171173
: null
@@ -288,6 +290,3 @@ const useStyles = makeStyles({
288290
gridRowGap: tokens.spacingVerticalS,
289291
}
290292
})
291-
292-
293-

0 commit comments

Comments
 (0)