Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

fix(client): remove useless close buttons (#1016)

John Cuba07d7109a4612
diff --git a/.changeset/reserved-jaguar-cry.md b/.changeset/reserved-jaguar-cry.md
new file mode 100644
index 00000000..91676fe5
--- /dev/null
+++ b/.changeset/reserved-jaguar-cry.md
@@ -0,0 +1,5 @@
+---
+"@papra/app": patch
+---
+
+Removed native clear button of search bar in safari.
diff --git a/.changeset/versatile-sparrow-clean.md b/.changeset/versatile-sparrow-clean.md
new file mode 100644
index 00000000..bd9a75ff
--- /dev/null
+++ b/.changeset/versatile-sparrow-clean.md
@@ -0,0 +1,5 @@
+---
+"@papra/app": patch
+---
+
+Removed useless close button in the small-screen sidebar sheet.
diff --git a/apps/papra-client/src/app.css b/apps/papra-client/src/app.css
index ccc99604..7b9df271 100644
--- a/apps/papra-client/src/app.css
+++ b/apps/papra-client/src/app.css
@@ -72,4 +72,7 @@
}
body {
@apply bg-background text-foreground;
+}
+input[type="search"]::-webkit-search-cancel-button {
+ -webkit-appearance: none;
}
\ No newline at end of file
diff --git a/apps/papra-client/src/modules/ui/components/sheet.tsx b/apps/papra-client/src/modules/ui/components/sheet.tsx
index 26653c1f..647fe813 100644
--- a/apps/papra-client/src/modules/ui/components/sheet.tsx
+++ b/apps/papra-client/src/modules/ui/components/sheet.tsx
@@ -59,23 +59,6 @@ export function SheetContent<T extends ValidComponent = 'div'>(props: Polymorphi
{...rest}
>
{local.children}
- <DialogPrimitive.CloseButton class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:(outline-none ring-1.5 ring-ring ring-offset-2) disabled:pointer-events-none bg-inherit transition-property-[opacity,box-shadow]">
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24"
- class="h-4 w-4"
- >
- <path
- fill="none"
- stroke="currentColor"
- stroke-linecap="round"
- stroke-linejoin="round"
- stroke-width="2"
- d="M18 6L6 18M6 6l12 12"
- />
- <title>Close</title>
- </svg>
- </DialogPrimitive.CloseButton>
</DialogPrimitive.Content>
</DialogPrimitive.Portal>
);