Skip to content

Commit e2eb036

Browse files
committed
feat: fix some stuff
1 parent 87683b1 commit e2eb036

6 files changed

Lines changed: 27 additions & 21 deletions

File tree

app/chat/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ export default function AskPage() {
146146
</main>
147147
</div>
148148

149-
{/* Mobile layout - positioned relative to allow for fixed header */}
150-
<div className="flex flex-col w-full h-full md:hidden relative">
149+
{/* Mobile layout */}
150+
<div className="flex flex-col w-full h-full md:hidden overflow-hidden">
151151
<MobileChatHeader
152152
onMenuClick={() => setMobileDrawerOpen(true)}
153153
model={model}
154154
temperature={temperature}
155155
/>
156-
<main className="flex-1 h-full flex flex-col">
156+
<main className="flex-1 min-h-0 flex flex-col overflow-hidden">
157157
<ChatInterface
158158
key={chatKey}
159159
initialMessages={initialMessages}

content/docs/cfx/common-errors/framework-errors.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ dependencies {
465465
- [ESX Documentation](https://documentation.esx-framework.org/)
466466
- [QBCore Documentation](https://docs.qbcore.org/)
467467
- [Framework Migration Guide](https://docs.fivem.net/docs/scripting-manual/migrating-from-deprecated-methods/)
468-
- [Multi-Framework Resource Development](/docs/frameworks/multi-framework-development)
468+
- [Frameworks Overview](/docs/frameworks)
469469

470470
<Callout type="warning">
471471
Always test your resource with the specific framework version you're

content/docs/guides/server-artifacts.mdx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,21 @@ FiveM artifacts are the compiled server binaries that power your FiveM server. T
3939
### Artifact Channels
4040

4141
<PropertyCard
42-
title="Recommended (Stable)"
43-
content="Thoroughly tested builds for production servers. Updated weekly as needed. Maximum stability and compatibility guaranteed."
42+
type="info"
43+
name="Recommended (Stable)"
44+
description="Thoroughly tested builds for production servers. Updated weekly as needed. Maximum stability and compatibility guaranteed."
4445
/>
4546

4647
<PropertyCard
47-
title="Optional (Beta)"
48-
content="Latest features and improvements, updated 2-3 times weekly. Good for testing before production deployment."
48+
type="warning"
49+
name="Optional (Beta)"
50+
description="Latest features and improvements, updated 2-3 times weekly. Good for testing before production deployment."
4951
/>
5052

5153
<PropertyCard
52-
title="Latest (Canary/Experimental)"
53-
content="Bleeding-edge development builds, not recommended for production. For developers and testers evaluating new features."
54+
type="error"
55+
name="Latest (Canary/Experimental)"
56+
description="Bleeding-edge development builds, not recommended for production. For developers and testers evaluating new features."
5457
/>
5558

5659
## Checking Current Version

packages/ui/src/components/mdx-components.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ interface Step {
10441044
}
10451045

10461046
interface StepListProps {
1047-
steps: Step[];
1047+
steps: (Step | string)[];
10481048
title?: string;
10491049
imagePosition?: "inline" | "below";
10501050
}
@@ -1092,13 +1092,17 @@ export function StepList({
10921092
return null;
10931093
}
10941094

1095+
const normalizedSteps: Step[] = steps.map((step) =>
1096+
typeof step === "string" ? { title: step } : step,
1097+
);
1098+
10951099
return (
10961100
<div className="my-4">
10971101
{title && (
10981102
<h4 className="mb-3 font-semibold text-fd-foreground">{title}</h4>
10991103
)}
11001104
<div className="space-y-6">
1101-
{steps.map((step, index) => {
1105+
{normalizedSteps.map((step, index) => {
11021106
const alertStyle = step.alert
11031107
? stepAlertConfig[step.alert.type]
11041108
: null;

packages/ui/src/components/mobile-chat-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const modelDisplayNames: Record<string, string> = {
2525

2626
export function MobileChatHeader({ onMenuClick, model, temperature }: MobileChatHeaderProps) {
2727
return (
28-
<div className="fixed top-0 left-0 right-0 h-12 flex items-center justify-between px-3 border-b bg-fd-background border-fd-border z-[100]">
28+
<div className="h-12 flex items-center justify-between px-3 border-b bg-fd-background border-fd-border shrink-0 z-50">
2929
<div className="flex items-center gap-2">
3030
<Button variant="ghost" size="icon" onClick={onMenuClick} className="h-8 w-8">
3131
<Menu className="h-4 w-4" />

packages/ui/src/core/chat/ChatInterface.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ export function ChatInterface({
499499
className={cn(
500500
"flex flex-col w-full bg-fd-background/80 backdrop-blur-sm relative",
501501
fullHeight ? "h-full" : "h-[calc(100vh-12rem)]",
502-
"md:mt-0 mt-12",
503502
"overflow-hidden",
504503
)}
505504
>
@@ -572,7 +571,7 @@ export function ChatInterface({
572571
delay: index === messages.length - 1 ? 0.1 : 0,
573572
}}
574573
className={cn(
575-
"flex gap-3",
574+
"flex gap-2 sm:gap-3 min-w-0",
576575
message.role === "user" ? "flex-row-reverse" : "flex-row",
577576
)}
578577
>
@@ -595,16 +594,16 @@ export function ChatInterface({
595594
{/* Message content */}
596595
<div
597596
className={cn(
598-
"flex flex-col gap-1 max-w-[calc(100%-3rem)]",
597+
"flex flex-col gap-1 min-w-0 max-w-[85%] sm:max-w-[calc(100%-3rem)]",
599598
message.role === "user" ? "items-end" : "items-start",
600599
)}
601600
>
602601
<div
603602
className={cn(
604-
"rounded-2xl px-4 py-3 break-words overflow-hidden",
603+
"rounded-2xl px-4 py-3 break-words min-w-0 w-full",
605604
message.role === "user"
606-
? "bg-[#5865F2] text-white rounded-tr-sm"
607-
: "bg-fd-muted/50 border border-fd-border text-fd-foreground rounded-tl-sm",
605+
? "bg-[#5865F2] text-white rounded-tr-sm overflow-hidden"
606+
: "bg-fd-muted/50 border border-fd-border text-fd-foreground rounded-tl-sm overflow-x-auto",
608607
)}
609608
>
610609
{renderMessageContent(message.content)}
@@ -668,8 +667,8 @@ export function ChatInterface({
668667
autoResize();
669668
}}
670669
onKeyDown={handleKeyDown}
671-
placeholder="Ask about FiveM, RedM, or txAdmin... (Shift+Enter for newline)"
672-
className="w-full bg-fd-muted/30 border border-fd-border focus:border-[#5865F2] focus:ring-1 focus:ring-[#5865F2]/20 rounded-xl text-sm resize-none overflow-hidden min-h-[40px] max-h-[160px] px-3 py-2 leading-[1.5] placeholder:text-muted-foreground focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed transition-colors"
670+
placeholder="Ask Fixie about FiveM, RedM, txAdmin..."
671+
className="w-full bg-fd-muted/30 border border-fd-border focus:border-[#5865F2] focus:ring-1 focus:ring-[#5865F2]/20 rounded-xl text-sm resize-none overflow-hidden min-h-[40px] max-h-[120px] sm:max-h-[160px] px-3 py-2 leading-[1.5] placeholder:text-muted-foreground focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed transition-colors"
673672
disabled={isLoading}
674673
rows={1}
675674
style={{ height: "40px" }}

0 commit comments

Comments
 (0)