Spaces:
Running
Running
responsive on navigation
Browse files
components/editor/ask-ai/selected-html-element.tsx
CHANGED
|
@@ -37,7 +37,7 @@ export const SelectedHtmlElement = ({
|
|
| 37 |
<Code className="text-neutral-300 size-3.5" />
|
| 38 |
</div>
|
| 39 |
<p className="text-sm font-semibold text-neutral-300">
|
| 40 |
-
{htmlTagToText(tagName)}
|
| 41 |
</p>
|
| 42 |
<XCircle className="text-neutral-300 size-4" />
|
| 43 |
</CollapsibleTrigger>
|
|
|
|
| 37 |
<Code className="text-neutral-300 size-3.5" />
|
| 38 |
</div>
|
| 39 |
<p className="text-sm font-semibold text-neutral-300">
|
| 40 |
+
Edit {htmlTagToText(tagName)}
|
| 41 |
</p>
|
| 42 |
<XCircle className="text-neutral-300 size-4" />
|
| 43 |
</CollapsibleTrigger>
|
components/editor/header/index.tsx
CHANGED
|
@@ -30,7 +30,7 @@ export function Header({
|
|
| 30 |
children?: ReactNode;
|
| 31 |
}) {
|
| 32 |
return (
|
| 33 |
-
<header className="border-b bg-slate-200 border-slate-300 dark:bg-neutral-950 dark:border-neutral-800 px-3 lg:px-6 py-2 grid grid-cols-3 z-20">
|
| 34 |
<div className="flex items-center justify-start gap-3">
|
| 35 |
<h1 className="text-neutral-900 dark:text-white text-lg lg:text-xl font-bold flex items-center justify-start">
|
| 36 |
<Image
|
|
@@ -47,7 +47,7 @@ export function Header({
|
|
| 47 |
</p>
|
| 48 |
</h1>
|
| 49 |
</div>
|
| 50 |
-
<div className="flex items-center justify-center gap-1">
|
| 51 |
{TABS.map((item) => (
|
| 52 |
<Button
|
| 53 |
key={item.value}
|
|
|
|
| 30 |
children?: ReactNode;
|
| 31 |
}) {
|
| 32 |
return (
|
| 33 |
+
<header className="border-b bg-slate-200 border-slate-300 dark:bg-neutral-950 dark:border-neutral-800 px-3 lg:px-6 py-2 flex items-center max-lg:gap-3 justify-between lg:grid lg:grid-cols-3 z-20">
|
| 34 |
<div className="flex items-center justify-start gap-3">
|
| 35 |
<h1 className="text-neutral-900 dark:text-white text-lg lg:text-xl font-bold flex items-center justify-start">
|
| 36 |
<Image
|
|
|
|
| 47 |
</p>
|
| 48 |
</h1>
|
| 49 |
</div>
|
| 50 |
+
<div className="flex items-center justify-start lg:justify-center gap-1 max-lg:pl-3 flex-1 max-lg:border-l max-lg:border-l-neutral-800">
|
| 51 |
{TABS.map((item) => (
|
| 52 |
<Button
|
| 53 |
key={item.value}
|
lib/html-tag-to-text.ts
CHANGED
|
@@ -51,7 +51,7 @@ export const htmlTagToText = (tagName: string): string => {
|
|
| 51 |
case "aside":
|
| 52 |
return "Aside";
|
| 53 |
case "div":
|
| 54 |
-
return "
|
| 55 |
case "main":
|
| 56 |
return "Main Content";
|
| 57 |
case "details":
|
|
|
|
| 51 |
case "aside":
|
| 52 |
return "Aside";
|
| 53 |
case "div":
|
| 54 |
+
return "Block";
|
| 55 |
case "main":
|
| 56 |
return "Main Content";
|
| 57 |
case "details":
|