Skip to content

Commit

Permalink
Merge branch 'main' of github.com:reearth/reearth-visualizer into fea…
Browse files Browse the repository at this point in the history
…t/preset-layer
  • Loading branch information
mkumbobeaty committed Sep 30, 2024
2 parents af10d68 + 8a11282 commit 87b4b74
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const FieldComponent = ({ field, setFields }: Props) => {
key={field?.id}
title={field?.title}
value={field.value as string}
resizable="height"
onBlur={handleChange}
/>
) : field?.type === "Asset" ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const GeneralSettings: FC<Props> = ({
<TextareaField
title={t("Description")}
value={localDescription}
resizable="height"
onChange={setLocalDescription}
/>
<SettingsRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const PublicSettingsDetail: React.FC<Props> = ({
<TextAreaField
title={t("Description")}
value={localPublicInfo.publicDescription ?? ""}
resizable="height"
onChange={(publicDescription: string) => {
setLocalPublicInfo((s) => ({ ...s, publicDescription }));
}}
Expand Down
4 changes: 2 additions & 2 deletions web/src/beta/lib/reearth-ui/components/TextArea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const TextArea: FC<TextAreaProps> = ({
value,
placeholder,
resizable,
rows = 3,
rows = 5,
disabled,
counter,
maxLength,
Expand Down Expand Up @@ -109,7 +109,7 @@ const StyledTextArea = styled.textarea<{
border: "none",
background: theme.bg[1],
resize: resizable === "height" ? "vertical" : "none",
overflow: resizable === "height" ? "scroll" : "auto",
overflow: "auto",
flex: 1,
color:
disabled && appearance !== "readonly"
Expand Down
1 change: 1 addition & 0 deletions web/src/beta/ui/fields/Properties/ProprtyField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const PropertyField: FC<Props> = ({
<TextareaField
key={schema.id}
title={schema.name}
resizable="height"
value={(value as string) ?? ""}
description={schema.description}
onBlur={handleChange}
Expand Down

0 comments on commit 87b4b74

Please sign in to comment.