Преглед на файлове

fix missing close button on mobile (#102)

Chris Tate преди 4 месеца
родител
ревизия
fd8c7a489f
променени са 1 файла, в които са добавени 18 реда и са изтрити 20 реда
  1. 18 20
      apps/web/components/docs-chat.tsx

+ 18 - 20
apps/web/components/docs-chat.tsx

@@ -342,27 +342,25 @@ export function DocsChat({
               Clear
             </button>
           )}
-          {isDesktop && (
-            <button
-              onClick={() => setOpen(false)}
-              className="text-muted-foreground hover:text-foreground transition-colors"
-              aria-label="Close panel"
+          <button
+            onClick={() => setOpen(false)}
+            className="text-muted-foreground hover:text-foreground transition-colors"
+            aria-label="Close panel"
+          >
+            <svg
+              width="14"
+              height="14"
+              viewBox="0 0 24 24"
+              fill="none"
+              stroke="currentColor"
+              strokeWidth="2"
+              strokeLinecap="round"
+              strokeLinejoin="round"
             >
-              <svg
-                width="14"
-                height="14"
-                viewBox="0 0 24 24"
-                fill="none"
-                stroke="currentColor"
-                strokeWidth="2"
-                strokeLinecap="round"
-                strokeLinejoin="round"
-              >
-                <line x1="18" y1="6" x2="6" y2="18" />
-                <line x1="6" y1="6" x2="18" y2="18" />
-              </svg>
-            </button>
-          )}
+              <line x1="18" y1="6" x2="6" y2="18" />
+              <line x1="6" y1="6" x2="18" y2="18" />
+            </svg>
+          </button>
         </div>
       </div>