File tree Expand file tree Collapse file tree 6 files changed +799
-444
lines changed
components/vetsai/assistant-ui Expand file tree Collapse file tree 6 files changed +799
-444
lines changed Original file line number Diff line number Diff line change 1- const safelist = [
2- / h t m l / ,
3- / b o d y / ,
4- / ^ t w : / ,
5- / ^ m a x S m : / ,
6- / ^ m a x X l : / ,
7- / ^ m a x L g : / ,
8- / ^ s m T o M d : / ,
9- / ^ s m : / ,
10- / ^ m d : / ,
11- / ^ l g : / ,
12- / ^ x l : / ,
13- / ^ 2 x l : / ,
14- / ^ 3 x l : / ,
15- / ^ c h i l d : / ,
16- / ^ h o v e r : / ,
17- / ^ f o c u s : / ,
18- / ^ g r o u p / ,
19- / ^ t w : g r o u p - h o v e r / ,
20- / ^ l a s t : / ,
21- / ^ f i r s t : / ,
22- / ^ e v e n : / ,
23- / ^ b e f o r e : / ,
24- / ^ a f t e r : / ,
25- / ^ n e x t I c o n ^ / ,
26- / ^ m o d a l - / ,
27- / ^ s w i p e r / ,
28- / ^ r e a c t - t a b s / ,
29- ] ;
30-
31- export default {
32- plugins : {
33- "@tailwindcss/postcss" : { } ,
34- ...( process . env . NODE_ENV === "production"
35- ? {
36- "@fullhuman/postcss-purgecss" : {
37- content : [ "./src/**/*.tsx" ] ,
38- defaultExtractor : ( content ) => content . match ( / [ \w - / : ] + (?< ! : ) / g) || [ ] ,
39- safelist : {
40- standard : safelist ,
41- deep : safelist ,
42- greedy : safelist ,
43- } ,
44- } ,
45- }
46- : { } ) ,
47- } ,
1+ const config = {
2+ plugins : [ "@tailwindcss/postcss" ] ,
483} ;
4+
5+ export default config ;
File renamed without changes.
Original file line number Diff line number Diff line change 11import "@assets/css/vetsai.css" ;
2+ import type { Metadata } from "next" ;
3+ import { Geist , Geist_Mono } from "next/font/google" ;
24
3- export const metadata = {
4- title : "Next.js" ,
5- description : "Generated by Next.js" ,
5+ const geistSans = Geist ( {
6+ variable : "--font-geist-sans" ,
7+ subsets : [ "latin" ] ,
8+ } ) ;
9+
10+ const geistMono = Geist_Mono ( {
11+ variable : "--font-geist-mono" ,
12+ subsets : [ "latin" ] ,
13+ } ) ;
14+
15+ export const metadata : Metadata = {
16+ title : "VetsAI" ,
17+ description : "An AI assistant for Veterans" ,
618} ;
719
8- const RootLayout = ( { children } : { children : React . ReactNode } ) => {
20+ const RootLayout = ( {
21+ children,
22+ } : Readonly < {
23+ children : React . ReactNode ;
24+ } > ) => {
925 return (
1026 < html lang = "en" >
11- < body > { children } </ body >
27+ < body className = { `${ geistSans . variable } ${ geistMono . variable } antialiased` } >
28+ { children }
29+ </ body >
1230 </ html >
1331 ) ;
1432} ;
Original file line number Diff line number Diff line change 4242 --radius-md : calc (var (--radius ) - 2px );
4343 --radius-lg : var (--radius );
4444 --radius-xl : calc (var (--radius ) + 4px );
45+ --thread-max-width : 42rem ;
4546}
4647
4748: root {
Original file line number Diff line number Diff line change @@ -250,12 +250,7 @@ const AssistantMessage: FC = () => {
250250
251251export const Thread : FC = ( ) => {
252252 return (
253- < ThreadPrimitive . Root
254- className = "bg-background box-border flex h-full flex-col overflow-hidden"
255- style = { {
256- [ "--thread-max-width" as string ] : "42rem" ,
257- } }
258- >
253+ < ThreadPrimitive . Root className = "bg-background box-border flex h-full flex-col overflow-hidden" >
259254 < ThreadPrimitive . Viewport className = "flex h-full flex-col items-center overflow-y-scroll scroll-smooth bg-inherit px-4 pt-8" >
260255 < ThreadWelcome />
261256
You can’t perform that action at this time.
0 commit comments