feat(FloatingChat): refactor chat width handling to be dynamic; enhance message panel positioning and styling with glass surface effects

This commit is contained in:
Roberto Musso
2026-02-28 23:30:47 +01:00
parent f767bb5175
commit cdf9a8bf18
4 changed files with 122 additions and 32 deletions

View File

@@ -68,7 +68,7 @@ export function useAIChat(defaultContext: ChatContext, options?: UseAIChatOption
const sectionMatch = finalContent.match(/^\[SECTION:([\w-]+)\]\s*/);
if (sectionMatch) {
finalContent = finalContent.slice(sectionMatch[0].length);
options?.onSectionTag?.(sectionMatch[1]);
options?.onSectionTag?.(sectionMatch[1]!);
}
setMessages((prev) => [