Skip to content

The Open Standard for Generative UI

Refactor mobile shell (#72)

subham843f22d0b779
diff --git a/js/packages/react-ui/package.json b/js/packages/react-ui/package.json
index a745fbc22..4f21f0e08 100644
--- a/js/packages/react-ui/package.json
+++ b/js/packages/react-ui/package.json
@@ -2,7 +2,7 @@
"type": "module",
"name": "@crayonai/react-ui",
"license": "MIT",
- "version": "0.5.13",
+ "version": "0.5.14",
"description": "Component library for Generative UI SDK",
"main": "dist/index.js",
"types": "dist/index.d.ts",
diff --git a/js/packages/react-ui/src/components/Shell/MobileHeader.tsx b/js/packages/react-ui/src/components/Shell/MobileHeader.tsx
index 9629f3247..926cbbabf 100644
--- a/js/packages/react-ui/src/components/Shell/MobileHeader.tsx
+++ b/js/packages/react-ui/src/components/Shell/MobileHeader.tsx
@@ -22,7 +22,7 @@ export const MobileHeader = ({ className }: { className?: string }) => {
/>
<div className="crayon-shell-mobile-header-logo-container">
<img className="crayon-shell-mobile-header-logo" src={logoUrl} alt="Logo" />
- <div>{agentName}</div>
+ <span className="crayon-shell-mobile-header-agent-name">{agentName}</span>
</div>
<IconButton
size="medium"
diff --git a/js/packages/react-ui/src/components/Shell/mobileHeader.scss b/js/packages/react-ui/src/components/Shell/mobileHeader.scss
index 471bf2166..770cf4f50 100644
--- a/js/packages/react-ui/src/components/Shell/mobileHeader.scss
+++ b/js/packages/react-ui/src/components/Shell/mobileHeader.scss
@@ -24,3 +24,8 @@
height: 32px;
border-radius: cssUtils.$rounded-m;
}
+
+.crayon-shell-mobile-header-agent-name {
+ @include cssUtils.typography(title, medium);
+ color: cssUtils.$primary-text;
+}