Skip to content

Commit

Permalink
Improved custom data editor UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
shrihari-prakash committed Jan 9, 2024
1 parent 004f585 commit 48ce9fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/features/user-editor/basic-info-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export default function BasicInfoEditor({
</FormItem>
)}
/>
<SheetFooter className="flex-col">
<SheetFooter className="flex-col sm:justify-center">
<Button
type="submit"
disabled={!isPermissionAllowed("admin:profile:write")}
Expand Down
4 changes: 2 additions & 2 deletions src/components/features/user-editor/custom-data-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ const CustomDataEditor = ({ user }: { user: User }) => {
onValueChange={(code) => setCustomData(code)}
highlight={(code) => highlight(code, languages.json)}
padding={10}
className="text-sm font-mono"
className="text-sm font-mono rounded-lg [&>*]:rounded-lg border overflow-hidden"
/>
<div className="flex sm:flex-row sm:justify-end sm:space-x-2 flex-col mt-4">
<div className="flex sm:flex-row sm:justify-center sm:space-x-2 flex-col mt-4">
<Button
type="submit"
className="mb-2 md:mb-0"
Expand Down

0 comments on commit 48ce9fe

Please sign in to comment.