Spaces:
Sleeping
Sleeping
button visible during generation
Browse files50 unmodified lines5152535455565758596061626364656667686970717273741 unmodified line767778798081828350 unmodified lines})}srcDoc={html}/>{!isAiWorking && (<div className="flex items-center justify-start gap-3 absolute bottom-3 lg:bottom-5 max-lg:left-3 lg:right-5"><buttonclassName="lg:hidden bg-gray-950 shadow-md text-white text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-900 hover:brightness-150 transition-all duration-100 cursor-pointer"onClick={() => setView("editor")}><FaLaptopCode className="text-sm" />Hide preview</button>{html === defaultHTML && (<ahref="https://huggingface.co/spaces/victor/deepsite-gallery"target="_blank"className="bg-gray-200 text-gray-950 text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-200 hover:bg-gray-300 transition-all duration-100 cursor-pointer">🖼️ <span>DeepSite Gallery</span></a>)}<buttonclassName="bg-white lg:bg-gray-950 shadow-md text-gray-950 lg:text-white text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-100 lg:border-gray-900 hover:brightness-150 transition-all duration-100 cursor-pointer"onClick={handleRefreshIframe}1 unmodified line<TbReload className="text-sm" />Refresh Preview</button></div>)}</div>);}50 unmodified lines5152535455565758596061626364656667686970717273741 unmodified line767778798081828350 unmodified lines})}srcDoc={html}/><div className="flex items-center justify-start gap-3 absolute bottom-3 lg:bottom-5 max-lg:left-3 lg:right-5"><buttonclassName="lg:hidden bg-gray-950 shadow-md text-white text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-900 hover:brightness-150 transition-all duration-100 cursor-pointer"onClick={() => setView("editor")}><FaLaptopCode className="text-sm" />Hide preview</button>{html === defaultHTML && (<ahref="https://huggingface.co/spaces/victor/deepsite-gallery"target="_blank"className="bg-gray-200 text-gray-950 text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-200 hover:bg-gray-300 transition-all duration-100 cursor-pointer">🖼️ <span>DeepSite Gallery</span></a>)}{!isAiWorking && (<buttonclassName="bg-white lg:bg-gray-950 shadow-md text-gray-950 lg:text-white text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-100 lg:border-gray-900 hover:brightness-150 transition-all duration-100 cursor-pointer"onClick={handleRefreshIframe}1 unmodified line<TbReload className="text-sm" />Refresh Preview</button>)}</div></div>);}
src/components/preview/preview.tsx+19-19