adding opacity to the PDFs so we can see the numbers and stamps better on the add PDF numbers and the add stamp tools (#5383)

<img width="301" height="450" alt="Screenshot 2026-01-02 at 2 17 19 PM"
src="https://github.com/user-attachments/assets/f7a1fd6d-722e-454a-a63d-d43709dd4e23"
/>

<img width="304" height="612" alt="Screenshot 2026-01-02 at 2 17 53 PM"
src="https://github.com/user-attachments/assets/907ba03c-b95a-49e2-8285-8ccaffaf067f"
/>

Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com>
This commit is contained in:
EthanHealy01
2026-01-05 23:25:31 +00:00
committed by GitHub
parent 0c96133544
commit fbc5d91c2c
4 changed files with 6 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
}
.containerWithThumbnail {
background-color: transparent;
background-color: white;
}
.containerWithoutThumbnail {
@@ -27,6 +27,7 @@
height: 100%;
object-fit: contain;
filter: grayscale(10%) contrast(95%) brightness(105%);
opacity: 0.3;
}
/* Quick grid overlay styles - EXACT copy from stamp */

View File

@@ -181,7 +181,7 @@ export default function PageNumberPreview({ parameters, onParameterChange, file,
position: 'relative' as const,
width: '100%',
aspectRatio: `${(pageSize?.widthPts ?? 595.28) / (pageSize?.heightPts ?? 841.89)} / 1`,
backgroundColor: pageThumbnail ? 'transparent' : 'rgba(255,255,255,0.03)',
backgroundColor: pageThumbnail ? 'white' : 'rgba(255,255,255,0.03)',
border: '1px solid var(--border-default, #333)',
overflow: 'hidden' as const
}), [pageSize, pageThumbnail]);

View File

@@ -8,7 +8,7 @@
}
.containerWithThumbnail {
background-color: transparent;
background-color: white;
}
.containerWithoutThumbnail {
@@ -27,6 +27,7 @@
height: 100%;
object-fit: contain;
filter: grayscale(10%) contrast(95%) brightness(105%);
opacity: 0.3;
}
/* Stamp item styles */

View File

@@ -209,7 +209,7 @@ export function computeStampPreviewStyle(
position: 'relative',
width: '100%',
aspectRatio: `${(pageSize?.widthPts ?? 595.28) / (pageSize?.heightPts ?? 841.89)} / 1`,
backgroundColor: hasPageThumbnail ? 'transparent' : 'rgba(255,255,255,0.03)',
backgroundColor: hasPageThumbnail ? 'white' : 'rgba(255,255,255,0.03)',
border: '1px solid var(--border-default, #333)',
overflow: 'hidden'
},