Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	ui stuffs
Browse files
    	
        components/editor/ask-ai/index.tsx
    CHANGED
    
    | @@ -282,7 +282,7 @@ export function AskAI({ | |
| 282 | 
             
              }, [isThinking]);
         | 
| 283 |  | 
| 284 | 
             
              return (
         | 
| 285 | 
            -
                 | 
| 286 | 
             
                  <div className="relative bg-neutral-800 border border-neutral-700 rounded-2xl ring-[4px] focus-within:ring-neutral-500/30 focus-within:border-neutral-600 ring-transparent z-10 w-full group">
         | 
| 287 | 
             
                    {think && (
         | 
| 288 | 
             
                      <div className="w-full border-b border-neutral-700 relative overflow-hidden">
         | 
| @@ -472,6 +472,6 @@ export function AskAI({ | |
| 472 | 
             
                    <source src="/success.mp3" type="audio/mpeg" />
         | 
| 473 | 
             
                    Your browser does not support the audio element.
         | 
| 474 | 
             
                  </audio>
         | 
| 475 | 
            -
                 | 
| 476 | 
             
              );
         | 
| 477 | 
             
            }
         | 
|  | |
| 282 | 
             
              }, [isThinking]);
         | 
| 283 |  | 
| 284 | 
             
              return (
         | 
| 285 | 
            +
                <div className="px-3">
         | 
| 286 | 
             
                  <div className="relative bg-neutral-800 border border-neutral-700 rounded-2xl ring-[4px] focus-within:ring-neutral-500/30 focus-within:border-neutral-600 ring-transparent z-10 w-full group">
         | 
| 287 | 
             
                    {think && (
         | 
| 288 | 
             
                      <div className="w-full border-b border-neutral-700 relative overflow-hidden">
         | 
|  | |
| 472 | 
             
                    <source src="/success.mp3" type="audio/mpeg" />
         | 
| 473 | 
             
                    Your browser does not support the audio element.
         | 
| 474 | 
             
                  </audio>
         | 
| 475 | 
            +
                </div>
         | 
| 476 | 
             
              );
         | 
| 477 | 
             
            }
         | 
    	
        components/editor/index.tsx
    CHANGED
    
    | @@ -184,7 +184,7 @@ export const AppEditor = ({ project }: { project?: Project | null }) => { | |
| 184 | 
             
                      <>
         | 
| 185 | 
             
                        <div
         | 
| 186 | 
             
                          ref={editor}
         | 
| 187 | 
            -
                          className="bg-neutral-900 relative flex-1 overflow-hidden h-full flex flex-col gap-2 pb-3 | 
| 188 | 
             
                        >
         | 
| 189 | 
             
                          <CopyIcon
         | 
| 190 | 
             
                            className="size-4 absolute top-2 right-5 text-neutral-500 hover:text-neutral-300 z-2 cursor-pointer"
         | 
|  | |
| 184 | 
             
                      <>
         | 
| 185 | 
             
                        <div
         | 
| 186 | 
             
                          ref={editor}
         | 
| 187 | 
            +
                          className="bg-neutral-900 relative flex-1 overflow-hidden h-full flex flex-col gap-2 pb-3"
         | 
| 188 | 
             
                        >
         | 
| 189 | 
             
                          <CopyIcon
         | 
| 190 | 
             
                            className="size-4 absolute top-2 right-5 text-neutral-500 hover:text-neutral-300 z-2 cursor-pointer"
         | 
    	
        components/editor/preview/index.tsx
    CHANGED
    
    | @@ -147,12 +147,11 @@ export const Preview = ({ | |
| 147 | 
             
                    ref={iframeRef}
         | 
| 148 | 
             
                    title="output"
         | 
| 149 | 
             
                    className={classNames(
         | 
| 150 | 
            -
                      "w-full select-none transition-all duration-200 bg-black",
         | 
| 151 | 
             
                      {
         | 
| 152 | 
             
                        "pointer-events-none": isResizing || isAiWorking,
         | 
| 153 | 
            -
                        "lg:max-w-md lg:mx-auto lg | 
| 154 | 
             
                          device === "mobile",
         | 
| 155 | 
            -
                        "h-full": device === "desktop",
         | 
| 156 | 
             
                        "lg:border-[8px] lg:border-neutral-700 lg:shadow-2xl lg:rounded-[24px]":
         | 
| 157 | 
             
                          currentTab !== "preview" && device === "desktop",
         | 
| 158 | 
             
                      }
         | 
|  | |
| 147 | 
             
                    ref={iframeRef}
         | 
| 148 | 
             
                    title="output"
         | 
| 149 | 
             
                    className={classNames(
         | 
| 150 | 
            +
                      "w-full select-none transition-all duration-200 bg-black h-full",
         | 
| 151 | 
             
                      {
         | 
| 152 | 
             
                        "pointer-events-none": isResizing || isAiWorking,
         | 
| 153 | 
            +
                        "lg:max-w-md lg:mx-auto lg:!rounded-[42px] lg:border-[8px] lg:border-neutral-700 lg:shadow-2xl lg:h-[70dvh] lg:max-h-[996px]":
         | 
| 154 | 
             
                          device === "mobile",
         | 
|  | |
| 155 | 
             
                        "lg:border-[8px] lg:border-neutral-700 lg:shadow-2xl lg:rounded-[24px]":
         | 
| 156 | 
             
                          currentTab !== "preview" && device === "desktop",
         | 
| 157 | 
             
                      }
         | 
