File tree Expand file tree Collapse file tree 2 files changed +25
-18
lines changed Expand file tree Collapse file tree 2 files changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ function GuestLogin() {
6565 const handleServerUrl = async ( ) => {
6666 setAppLogo ( logo ) ;
6767
68- localStorage . clear ( ) ;
68+ localStorage . clear ( ) ; // Clears everything
69+ localStorage . setItem (
70+ "appname" ,
71+ "OpenSign™"
72+ ) ;
6973 //save isGuestSigner true in local to handle login flow header in mobile view
7074 localStorage . setItem ( "isGuestSigner" , true ) ;
7175 saveLanguageInLocal ( i18n ) ;
@@ -220,11 +224,15 @@ function GuestLogin() {
220224 { isLoading . isLoad ? (
221225 < LoaderWithMsg isLoading = { isLoading } />
222226 ) : (
223- < div className = "p-14 h " >
224- < div className = "m-1 md:m-2 p-[30px] text-base-content bg-base-100 op-card shadow-md" >
225- < div className = "md: w-[250px] md: h-[66px] inline-block overflow-hidden mt-2 mb-11 " >
227+ < div className = "pb-1 md:pb-4 pt-10 md:px-10 lg:px-16 " >
228+ < div className = "md:p-4 lg:p-10 p-4 text-base-content bg-base-100 op-card shadow-md" >
229+ < div className = "w-[250px] h-[66px] inline-block overflow-hidden mb-6 " >
226230 { appLogo && (
227- < img src = { appLogo } className = "object-contain" alt = "logo" />
231+ < img
232+ src = { appLogo }
233+ className = "object-contain h-full"
234+ alt = "logo"
235+ />
228236 ) }
229237 </ div >
230238 { contactId ? (
Original file line number Diff line number Diff line change @@ -65,19 +65,18 @@ function DownloadPdfZip(props) {
6565 throw new Error ( `Failed to fetch certificate PDF: ${ certificateUrl } ` ) ;
6666 }
6767 const pdf2Blob = await pdf2Response . blob ( ) ;
68- // Add files to ZIP
69- zip . file (
70- `${ sanitizeFileName ( pdfName ) } _signed_by_${ appName } .pdf` ,
71- pdf1Blob
72- ) ;
73- zip . file ( `Certificate_signed_by_${ appName } .pdf` , pdf2Blob ) ;
74-
75- // Generate the ZIP and trigger download
76- const zipBlob = await zip . generateAsync ( { type : "blob" } ) ;
77- saveAs (
78- zipBlob ,
79- `${ sanitizeFileName ( pdfName ) } _signed_by_${ appName } .zip`
80- ) ;
68+ // Add files to ZIP
69+ zip . file (
70+ `${ sanitizeFileName ( pdfName ) } _signed_by_${ appName } .pdf` ,
71+ pdf1Blob
72+ ) ;
73+ zip . file ( `Certificate_signed_by_${ appName } .pdf` , pdf2Blob ) ;
74+ // Generate the ZIP and trigger download
75+ const zipBlob = await zip . generateAsync ( { type : "blob" } ) ;
76+ saveAs (
77+ zipBlob ,
78+ `${ sanitizeFileName ( pdfName ) } _signed_by_${ appName } .zip`
79+ ) ;
8180 setSelectType ( 1 ) ;
8281 props . setIsDownloadModal ( false ) ;
8382 setIsDownloading ( "" ) ;
You can’t perform that action at this time.
0 commit comments