Skip to content

Commit

Permalink
Change layout of first message from Scout (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
xpaczka authored Nov 6, 2023
2 parents 53e5f4a + 3c128cc commit acd399e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/Assistant/AssistantContent/AssistantWelcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function AssistantWelcome() {
<>
<AssistantContent
isVisible={assistantVisible("welcome")}
style={{width: 620}}
close={() => updateAssistant({ visible: false, type: "default" })}
>
<div className="header">Welcome to Subscape, Nomad</div>
Expand All @@ -23,8 +24,7 @@ export default function AssistantWelcome() {
<Icon src={realmPointer} type="image" height="37px" width="30px" />
<p>
<strong>
Start exploring by hovering
<br /> over our 5 Beta Realms
Start exploring by hovering over our 5 Beta Realms
</strong>
</p>
</div>
Expand Down
3 changes: 3 additions & 0 deletions src/ui/Assistant/AssistantContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import closeIcon from "shared/assets/icons/s/close.svg"
export type AssistantContentProps = {
isVisible: boolean
close: () => void
style?: React.CSSProperties
}

export default function AssistantContent({
children,
isVisible,
close,
style,
}: AssistantContentProps & { children: ReactNode }) {
const transition = useVisibilityTransition(isVisible)

Expand All @@ -29,6 +31,7 @@ export default function AssistantContent({
padding: "24px 32px 32px",
width: 375,
pointerEvents: isVisible ? "all" : "none",
...style,
}}
>
<button
Expand Down

0 comments on commit acd399e

Please sign in to comment.