Merge pull request #1732 from OpenSignLabs/updates-15023371589

fix: edit template option not visible in mobile view
This commit is contained in:
prafull-opensignlabs
2025-05-14 20:00:02 +05:30
committed by GitHub
2 changed files with 17 additions and 3 deletions
+3 -3
View File
@@ -63,7 +63,7 @@
"scripts": {
"build-template-win": "vite build --config vite.public-template.config.js",
"build-template": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js",
"build": "npm run version && react-scripts build",
"build": "npm run version && npm run build-template && NODE_OPTIONS=\"--max-old-space-size=8192\" vite build",
"build-template-watch": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js --watch",
"start-dev": "vite",
"dev": "vite",
@@ -71,7 +71,7 @@
"start": "serve -s build",
"version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt",
"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\"",
"build-win": "npm run version-win && react-scripts build",
"build-win": "npm run version-win && npm run build-template-win && vite build",
"test": "vitest run",
"test:watch": "vitest",
"release": "standard-version",
@@ -143,4 +143,4 @@
"engines": {
"node": "18 || 20 || 22"
}
}
}
@@ -276,6 +276,20 @@ function Header(props) {
className="bg-white shadow-md rounded-md px-3 py-2"
sideOffset={5}
>
{props?.setIsEditTemplate && (
<DropdownMenu.Item
className="DropdownMenuItem"
onClick={() => props?.setIsEditTemplate(true)}
>
<div className="flex flex-row">
<i
className="fa-light fa-gear mr-[3px]"
aria-hidden="true"
></i>
<span className="font-[500]">{t("Edit")}</span>
</div>
</DropdownMenu.Item>
)}
<DropdownMenu.Item
className="DropdownMenuItem"
onClick={() =>