diff --git a/src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js b/src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js
index b5166e8..7244e94 100644
--- a/src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js
+++ b/src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js
@@ -1,7 +1,6 @@
// material-ui
import {
Button,
- CardContent,
Grid, TextField,
Autocomplete,
Typography
@@ -14,6 +13,8 @@ import * as DateUtils from "utils/DateUtils";
import {
isORGLoggedIn,
} from "utils/Utils";
+import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst";
+import {ThemeProvider} from "@emotion/react";
// ==============================|| DASHBOARD - DEFAULT ||============================== //
@@ -27,6 +28,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => {
const [selectedLabelsString, setSelectedLabelsString] = React.useState('');
const { reset, register, handleSubmit } = useForm()
+ const marginBottom = 2.5;
+
const onSubmit = (data) => {
data.status = selectedLabelsString
let typeArray = [];
@@ -59,12 +62,11 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => {
diff --git a/src/pages/PublicNotice/ListPanel/SearchPublicNoticeTab.js b/src/pages/PublicNotice/ListPanel/SearchPublicNoticeTab.js
index d5847d8..4723a7a 100644
--- a/src/pages/PublicNotice/ListPanel/SearchPublicNoticeTab.js
+++ b/src/pages/PublicNotice/ListPanel/SearchPublicNoticeTab.js
@@ -45,9 +45,9 @@ const UserSearchPage_Individual = () => {
}
return (
-
+
{/*row 1*/}
-
+
() => {
navigate('/publicNotice/'+ params.id);
@@ -30,13 +33,15 @@ export default function SearchPublicNoticeTable({ recordList }) {
id: 'appNo',
field: 'appNo',
headerName: '申請編號',
- flex: 1,
+ width: isMdOrLg ? 'auto' : 160,
+ flex: isMdOrLg ? 1 : undefined,
},
{
id: 'created',
field: 'created',
headerName: '提交日期',
- flex: 1,
+ width: isMdOrLg ? 'auto' : 160,
+ flex: isMdOrLg ? 1 : undefined,
valueGetter: (params) => {
return DateUtils.datetimeStr(params?.value);
}
@@ -71,7 +76,8 @@ export default function SearchPublicNoticeTable({ recordList }) {
id: 'remarks',
field: 'remarks',
headerName: isORGLoggedIn()?"Care Of / 我的備註":"我的備註",
- flex: 3,
+ width: isMdOrLg ? 'auto' : 400,
+ flex: isMdOrLg ? 3 : undefined,
renderCell: (params) => (
isORGLoggedIn()?
diff --git a/src/pages/PublicNotice/ListPanel/index.js b/src/pages/PublicNotice/ListPanel/index.js
index 068551c..dbfa3f0 100644
--- a/src/pages/PublicNotice/ListPanel/index.js
+++ b/src/pages/PublicNotice/ListPanel/index.js
@@ -23,6 +23,8 @@ const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingCo
const SearchTab = Loadable(lazy(() => import('./SearchPublicNoticeTab')));
import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png'
+import {PNSPS_LONG_BUTTON_THEME} from "../../../themes/buttonConst";
+import {ThemeProvider} from "@emotion/react";
// ==============================|| DASHBOARD - DEFAULT ||============================== //
@@ -48,6 +50,9 @@ const PublicNotice = () => {
'& .MuiDataGrid-footerContainer': {
border: 1,
borderColor: "#EEE"
+ },
+ '& .MuiTabPanel-root': {
+ padding: '0px',
}
}
@@ -105,21 +110,23 @@ const PublicNotice = () => {
-
+
+
-
+
+
{/*col 2*/}
{
JSON.parse(localStorage.getItem('userData')).creditor ? (
-
+
-
-
+
+
@@ -153,7 +160,7 @@ const PublicNotice = () => {
) : (
-
+
diff --git a/src/pages/PublicNotice/Search_GLD/SearchForm.js b/src/pages/PublicNotice/Search_GLD/SearchForm.js
index ce0fef6..ee63347 100644
--- a/src/pages/PublicNotice/Search_GLD/SearchForm.js
+++ b/src/pages/PublicNotice/Search_GLD/SearchForm.js
@@ -304,10 +304,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
@@ -316,10 +313,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
diff --git a/src/themes/buttonConst.js b/src/themes/buttonConst.js
index a8c6073..d6f2cb5 100644
--- a/src/themes/buttonConst.js
+++ b/src/themes/buttonConst.js
@@ -53,7 +53,8 @@ export const PNSPS_BUTTON_THEME = createTheme({
MuiButton: {
styleOverrides: {
root: {
- fontSize: '1.0rem',
+ fontSize: '1.2rem',
+ fontWeight: '600',
height: '40px',
width: '40vw', // Default width for xs screen sizes
'@media (min-width: 600px)': { // sm breakpoint
@@ -126,17 +127,18 @@ export const PNSPS_LONG_BUTTON_THEME = createTheme({
MuiButton: {
styleOverrides: {
root: {
- fontSize: '1.0rem',
+ fontSize: '1.2rem',
+ fontWeight: '600',
height: '40px',
- width: '70vw', // Default width for xs screen sizes
+ width: '60vw', // Default width for xs screen sizes
'@media (min-width: 600px)': { // sm breakpoint
- width: '30vw',
+ width: '33vw',
},
'@media (min-width: 960px)': { // md breakpoint
width: '25vw',
},
'@media (min-width: 1280px)': { // lg breakpoint
- width: '19vw',
+ width: '16vw',
},
textTransform: "none",
alignItems: 'center'
diff --git a/src/themes/themeConst.js b/src/themes/themeConst.js
index 7fab971..06c2b2b 100644
--- a/src/themes/themeConst.js
+++ b/src/themes/themeConst.js
@@ -158,15 +158,16 @@ export const PNSPS_THEME = createTheme({
fontSize: '1.25rem'
},
sizeMedium: {
- width: theme.spacing(4.5),
- height: theme.spacing(4.5),
+ width: theme.spacing(3.75),
+ height: theme.spacing(3.75),
fontSize: '1rem'
},
sizeSmall: {
width: theme.spacing(3.75),
height: theme.spacing(3.75),
fontSize: '0.75rem'
- }
+ },
+ top: "auto"
},
},
},
diff --git a/src/themes/typography.js b/src/themes/typography.js
index d4915bc..0b8b739 100644
--- a/src/themes/typography.js
+++ b/src/themes/typography.js
@@ -8,7 +8,7 @@ const Typography = (fontFamily) => ({
fontWeightMedium: 500,
fontWeightBold: 600,
pnspsFormTitle: {
- fontWeight: 600,
+ fontWeight: 500,
fontSize: '1.175rem',
lineHeight: 1.4
},
@@ -23,7 +23,7 @@ const Typography = (fontFamily) => ({
lineHeight: 1.5
},
pnspsFormParagraph: {
- fontWeight: 600,
+ fontWeight: 400,
fontSize: '1.1rem',
lineHeight: 0.8
},