Skip to content

Commit 037bac7

Browse files
committed
Add image class to file input
1 parent 357ae2d commit 037bac7

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

TechStacks.Client/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TechStacks.Client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@radix-ui/react-dropdown-menu": "^2.1.0",
2525
"@radix-ui/react-select": "^2.1.0",
2626
"@servicestack/client": "^2.0.17",
27-
"@servicestack/react": "^2.0.15",
27+
"@servicestack/react": "^2.0.16",
2828
"@tailwindcss/postcss": "^4.1.17",
2929
"class-variance-authority": "^0.7.0",
3030
"clsx": "^2.1.0",

TechStacks.Client/src/components/forms/PostForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ export function PostForm({ postId, onDone }: PostFormProps) {
226226
/>
227227
</div>
228228
<div className="col-span-3">
229-
<FileInput id="icon" value={formData.imageUrl} />
229+
<FileInput id="icon" value={formData.imageUrl}
230+
imageClass="block max-w-36 max-h-32 object-cover" />
230231
</div>
231232
<div className="col-span-6">
232233
<TextInput

0 commit comments

Comments
 (0)