Skip to content

Commit c422cda

Browse files
Merge pull request #1732 from OpenSignLabs/updates-15023371589
fix: edit template option not visible in mobile view
2 parents 6927540 + ab08d26 commit c422cda

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

apps/OpenSign/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@
6363
"scripts": {
6464
"build-template-win": "vite build --config vite.public-template.config.js",
6565
"build-template": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js",
66-
"build": "npm run version && react-scripts build",
66+
"build": "npm run version && npm run build-template && NODE_OPTIONS=\"--max-old-space-size=8192\" vite build",
6767
"build-template-watch": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js --watch",
6868
"start-dev": "vite",
6969
"dev": "vite",
7070
"preview": "vite preview",
7171
"start": "serve -s build",
7272
"version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt",
7373
"version-win": "powershell -Command \"Invoke-RestMethod -Uri 'https://api.github.com/repos/opensignlabs/opensign/releases/latest' | Select-Object -ExpandProperty tag_name | Out-File -FilePath ./public/version.txt\"",
74-
"build-win": "npm run version-win && react-scripts build",
74+
"build-win": "npm run version-win && npm run build-template-win && vite build",
7575
"test": "vitest run",
7676
"test:watch": "vitest",
7777
"release": "standard-version",
@@ -143,4 +143,4 @@
143143
"engines": {
144144
"node": "18 || 20 || 22"
145145
}
146-
}
146+
}

apps/OpenSign/src/components/pdf/PdfHeader.jsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,20 @@ function Header(props) {
276276
className="bg-white shadow-md rounded-md px-3 py-2"
277277
sideOffset={5}
278278
>
279+
{props?.setIsEditTemplate && (
280+
<DropdownMenu.Item
281+
className="DropdownMenuItem"
282+
onClick={() => props?.setIsEditTemplate(true)}
283+
>
284+
<div className="flex flex-row">
285+
<i
286+
className="fa-light fa-gear mr-[3px]"
287+
aria-hidden="true"
288+
></i>
289+
<span className="font-[500]">{t("Edit")}</span>
290+
</div>
291+
</DropdownMenu.Item>
292+
)}
279293
<DropdownMenu.Item
280294
className="DropdownMenuItem"
281295
onClick={() =>

0 commit comments

Comments
 (0)