Spaces:
Running
Running
wording btn
Browse files
src/components/ask-ai/ask-ai.tsx
CHANGED
@@ -150,7 +150,7 @@ function AskAI({
|
|
150 |
className="bg-white lg:hidden -translate-y-[calc(100%+8px)] absolute left-0 top-0 shadow-md text-gray-950 text-xs font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-100 hover:brightness-150 transition-all duration-100 cursor-pointer"
|
151 |
onClick={() => setView("preview")}
|
152 |
>
|
153 |
-
<MdPreview />
|
154 |
View Preview
|
155 |
</button>
|
156 |
)}
|
|
|
150 |
className="bg-white lg:hidden -translate-y-[calc(100%+8px)] absolute left-0 top-0 shadow-md text-gray-950 text-xs font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-100 hover:brightness-150 transition-all duration-100 cursor-pointer"
|
151 |
onClick={() => setView("preview")}
|
152 |
>
|
153 |
+
<MdPreview className="text-sm" />
|
154 |
View Preview
|
155 |
</button>
|
156 |
)}
|
src/components/preview/preview.tsx
CHANGED
@@ -57,8 +57,8 @@ function Preview({
|
|
57 |
className="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"
|
58 |
onClick={() => setView("editor")}
|
59 |
>
|
60 |
-
<FaLaptopCode />
|
61 |
-
|
62 |
</button>
|
63 |
{html === defaultHTML && (
|
64 |
<a
|
@@ -73,7 +73,7 @@ function Preview({
|
|
73 |
className="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"
|
74 |
onClick={handleRefreshIframe}
|
75 |
>
|
76 |
-
<TbReload />
|
77 |
Refresh Preview
|
78 |
</button>
|
79 |
</div>
|
|
|
57 |
className="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"
|
58 |
onClick={() => setView("editor")}
|
59 |
>
|
60 |
+
<FaLaptopCode className="text-sm" />
|
61 |
+
Hide preview
|
62 |
</button>
|
63 |
{html === defaultHTML && (
|
64 |
<a
|
|
|
73 |
className="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"
|
74 |
onClick={handleRefreshIframe}
|
75 |
>
|
76 |
+
<TbReload className="text-sm" />
|
77 |
Refresh Preview
|
78 |
</button>
|
79 |
</div>
|