feat: screenshot whole page, hide certain elements, screenshot fixed size (#180)

* feat: screenshot whole page, hide certain elements, screenshot fixed size

* refactor: use variants instead of groups and custom rules

* feat: scaled header, smaller body, weird padding/margin changes

* feat: consistent sizing & style regardless of zoom

* feat: use downloadBlob instead of hand-rolled image saving

* fix: be type safe is toBlob returns Promise<null>

* fix: revoke object url when it should be

* fix: animation scheduling

---------

Co-authored-by: Razboy20 <razboy20@gmail.com>
This commit is contained in:
Samuel Gunter
2024-03-21 19:20:03 -05:00
committed by GitHub
parent 2dfb10e57b
commit 7d4c5d7be8
11 changed files with 81 additions and 37 deletions

View File

@@ -93,7 +93,7 @@ export default function CalendarCourseCell({
</div>
{rightIcon && (
<div
className='h-fit flex items-center justify-center justify-self-start rounded p-0.5 text-white'
className='h-fit flex items-center justify-center justify-self-start rounded p-0.5 text-white screenshot:hidden'
style={{
backgroundColor: colors.secondaryColor,
}}