Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: minor ui fixes for pdf attachment preview

Abdullah Atta89dd8f5b6c31
diff --git a/apps/web/src/app.css b/apps/web/src/app.css
index 853d6b404..8cb170012 100644
--- a/apps/web/src/app.css
+++ b/apps/web/src/app.css
@@ -122,6 +122,17 @@ textarea,
-webkit-tap-highlight-color: transparent;
}
+.rpv-core__text-layer-text::selection {
+ background-color: var(--dimPrimary) !important;
+ color: transparent;
+}
+
+.rpv-core__text-layer-text::-moz-selection {
+ /* Code for Firefox */
+ background-color: var(--dimPrimary) !important;
+ color: transparent;
+}
+
*::-moz-focus-inner {
border: 0;
}
diff --git a/apps/web/src/components/pdf-preview/index.tsx b/apps/web/src/components/pdf-preview/index.tsx
index 8330bdae9..70df23de6 100644
--- a/apps/web/src/components/pdf-preview/index.tsx
+++ b/apps/web/src/components/pdf-preview/index.tsx
@@ -92,6 +92,8 @@ export function PdfPreview(props: PdfPreviewProps) {
},
".rpv-core__textbox": {
+ width: "45px",
+ mr: 1,
borderRadius: "default",
px: 1,
py: "2px",