From e26e45395f27cd3481adcf1227361ed3d470554e Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Mon, 17 Nov 2025 02:45:33 +0800 Subject: [PATCH] update combo layout --- src/pages/DemandNote/Create/SearchForm.js | 5 +++++ src/pages/DemandNote/Export/SearchForm.js | 5 +++++ src/pages/DemandNote/Search/SearchForm.js | 15 +++++++++++++ .../DemandNote/Search_Public/SearchForm.js | 10 +++++++++ src/pages/GazetteIssue/ExportForm.js | 6 ++--- src/pages/GazetteIssue/SearchForm.js | 6 ++--- src/pages/Holiday/SearchForm.js | 6 ++--- .../SearchPage/OrganizationSearchForm.js | 5 +++++ src/pages/Payment/Search_GLD/SearchForm.js | 5 +++++ src/pages/Payment/Search_Public/SearchForm.js | 5 +++++ src/pages/Proof/Create_FromApp/ProofForm.js | 6 ++++- src/pages/Proof/Search_GLD/SearchForm.js | 20 +++++++++++++++++ src/pages/Proof/Search_Public/SearchForm.js | 10 +++++++++ .../Details_GLD/StatusChangeDialog.js | 6 ++++- .../ListPanel/PendingPaymentTab.js | 5 +++++ .../ListPanel/SearchPublicNoticeForm.js | 5 +++++ .../PublicNotice/Search_GLD/SearchForm.js | 20 +++++++++++++++++ .../Search_Mark_As_Paid_GLD/SearchForm.js | 15 +++++++++++++ src/pages/Recon/SearchForm.js | 10 +++++++++ .../UserSearchForm_Individual.js | 5 +++++ .../UserSearchForm_Organization.js | 22 ++++++++++++++----- .../auth-forms/BusCustomFormWizard.js | 15 ++++++++----- .../auth-forms/CustomFormWizard.js | 19 +++++++++++----- .../auth-forms/IAmSmartFormWizard.js | 17 +++++++++----- .../pnspsUserGroupDetailPage/UserAddCard.js | 5 +++++ src/utils/Combo.js | 10 +++------ src/utils/SelectBase.js | 10 +++------ 27 files changed, 221 insertions(+), 47 deletions(-) diff --git a/src/pages/DemandNote/Create/SearchForm.js b/src/pages/DemandNote/Create/SearchForm.js index 014eee0..bd41083 100644 --- a/src/pages/DemandNote/Create/SearchForm.js +++ b/src/pages/DemandNote/Create/SearchForm.js @@ -173,6 +173,11 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p setIssueSelected(newValue); } }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { setIssueSelected(newValue); } }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { setIssueSelected(newValue); }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( ( option.label} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( ( ( { setSelectedYear(newValue); }} sx={{ - "& .MuiInputBase-root": { height: "41px" }, - "#year-combo": { padding: "0px 0px 0px 0px" }, - "& .MuiAutocomplete-endAdornment": { top: "auto" }, + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } }} renderInput={(params) => } /> diff --git a/src/pages/GazetteIssue/SearchForm.js b/src/pages/GazetteIssue/SearchForm.js index 7d53fee..37ad3d4 100644 --- a/src/pages/GazetteIssue/SearchForm.js +++ b/src/pages/GazetteIssue/SearchForm.js @@ -79,9 +79,9 @@ const SearchGazetteIssueForm = ({ applySearch, comboData, onGridReady}) => { setSelectedYear(newValue); }} sx={{ - "& .MuiInputBase-root": { height: "41px" }, - "#year-combo": { padding: "0px 0px 0px 0px" }, - "& .MuiAutocomplete-endAdornment": { top: "auto" }, + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } }} renderInput={(params) => } /> diff --git a/src/pages/Holiday/SearchForm.js b/src/pages/Holiday/SearchForm.js index 372d65d..3a49ec1 100644 --- a/src/pages/Holiday/SearchForm.js +++ b/src/pages/Holiday/SearchForm.js @@ -79,9 +79,9 @@ const SearchHolidayForm = ({ applySearch, comboData, onGridReady}) => { setSelectedYear(newValue); }} sx={{ - "& .MuiInputBase-root": { height: "41px" }, - "#year-combo": { padding: "0px 0px 0px 0px" }, - "& .MuiAutocomplete-endAdornment": { top: "auto" }, + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } }} renderInput={(params) => } /> diff --git a/src/pages/Organization/SearchPage/OrganizationSearchForm.js b/src/pages/Organization/SearchPage/OrganizationSearchForm.js index 5e3f609..b8d1134 100644 --- a/src/pages/Organization/SearchPage/OrganizationSearchForm.js +++ b/src/pages/Organization/SearchPage/OrganizationSearchForm.js @@ -150,6 +150,11 @@ const OrganizationSearchForm = ({ applySearch, onGridReady, searchCriteria }) => }} getOptionLabel={(option) => option.label} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( setStatus(newValue); } }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( setStatus(ComboData.paymentStatus[0]); } }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { { setColumnPrice(newValue) formik.values["fee"] = newValue.value * formik.values.length; }} + renderInput={(params) => ( { setIssueSelected(newValue); }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { setGroupSelected(newValue); }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( ( ( { setIssueSelected(newValue); }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( ( { props.setSelectedGazetteGroupInputType(""); } }} - // sx={{"& .MuiInputBase-root": { height: "41px" },"#idDocType":{padding: "0px 0px 0px 0px"}, "& .MuiAutocomplete-endAdornment": { top: "auto" },}} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => } /> diff --git a/src/pages/PublicNotice/ListPanel/PendingPaymentTab.js b/src/pages/PublicNotice/ListPanel/PendingPaymentTab.js index 831a2c2..1ece40b 100644 --- a/src/pages/PublicNotice/ListPanel/PendingPaymentTab.js +++ b/src/pages/PublicNotice/ListPanel/PendingPaymentTab.js @@ -393,6 +393,11 @@ export default function SubmittedTab({ setCount, url }) { // console.log(newValue) setSelectedCareOf(newValue); }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => } /> diff --git a/src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js b/src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js index a568f4c..6721000 100644 --- a/src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js +++ b/src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js @@ -242,6 +242,11 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) => setStatus(newValue); } }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( option.label} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( ( { setIssueSelected(newValue); }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { setGroupSelected(newValue); }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( option.label} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( ( { setIssueSelected(newValue); }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { setMethod(newValue); } }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { setStatus(newValue); } }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( ( ( { - if (newValue !== null){ - setAccountFilter(newValue); - }else{ - setAccountFilter("All"); - } - }} + if (newValue !== null){ + setAccountFilter(newValue); + }else{ + setAccountFilter("All"); + } + }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { onChange={(event, newValue) => { setSelectedAddress4(newValue); }} - sx={{ "& .MuiInputBase-root": { height: "41px" }, - "#address4-combo": { padding: "0px 0px 0px 3px" }, - "& .MuiAutocomplete-endAdornment": { top: "auto" }, }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => } /> @@ -1083,8 +1085,11 @@ const BusCustomFormWizard = (props) => { setCheckCountry(true) } }} - - sx={{ "& .MuiInputBase-root": { height: "41px" }, "#address5-combo": { padding: "0px 0px 0px 3px" }, "& .MuiAutocomplete-endAdornment": { top: "auto" }, }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => } /> {formik.touched.address1 && formik.errors.address1 && ( diff --git a/src/pages/authentication/auth-forms/CustomFormWizard.js b/src/pages/authentication/auth-forms/CustomFormWizard.js index 5e0127a..666a4b9 100644 --- a/src/pages/authentication/auth-forms/CustomFormWizard.js +++ b/src/pages/authentication/auth-forms/CustomFormWizard.js @@ -1101,7 +1101,11 @@ const CustomFormWizard = (props) => { setSelectedIdDocType({}); } }} - sx={{ "#address4-combo": { padding: "0px 0px 0px 0px" }, "& .MuiAutocomplete-endAdornment": { top: "auto" }, }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => { setSelectedAddress4(newValue); }} sx={{ - "& .MuiInputBase-root": { height: "41px" }, - "#address4-combo": { padding: "0px 0px 0px 3px" }, - "& .MuiAutocomplete-endAdornment": { top: "auto" }, + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } }} renderInput={(params) => } @@ -1452,8 +1456,11 @@ const CustomFormWizard = (props) => { setCheckCountry(true) } }} - - sx={{ "& .MuiInputBase-root": { height: "41px" }, "#address5-combo": { padding: "0px 0px 0px 3px" }, "& .MuiAutocomplete-endAdornment": { top: "auto" }, }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => } /> {formik.touched.address1 && formik.errors.address1 && ( diff --git a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js index 358f71b..3c08cb3 100644 --- a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js +++ b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js @@ -615,8 +615,12 @@ const CustomFormWizard = (props) => { onChange={(event, newValue) => { setSelectedAddress4(newValue); }} - sx={{ "& .MuiInputBase-root": { height: "41px" }, "#address4-combo": { padding: "0px 0px 0px 0px" }, "& .MuiAutocomplete-endAdornment": { top: "auto" }, }} - renderInput={(params) => } /> { setCheckCountry(true) } }} - - sx={{ "& .MuiInputBase-root": { height: "41px" }, "#address5-combo": { padding: "0px 0px 0px 0px" }, "& .MuiAutocomplete-endAdornment": { top: "auto" }, }} - renderInput={(params) => } + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} + renderInput={(params) => } /> {formik.touched.address1 && formik.errors.address1 && ( diff --git a/src/pages/pnspsUserGroupDetailPage/UserAddCard.js b/src/pages/pnspsUserGroupDetailPage/UserAddCard.js index 2b1af31..4a6a289 100644 --- a/src/pages/pnspsUserGroupDetailPage/UserAddCard.js +++ b/src/pages/pnspsUserGroupDetailPage/UserAddCard.js @@ -128,6 +128,11 @@ const UserAddCard = ({ isCollectData, updateGroupMember, userGroupData, isNewRec // console.log(newValue) setSelectedUser(newValue); }} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => } /> diff --git a/src/utils/Combo.js b/src/utils/Combo.js index e426802..6a0b761 100644 --- a/src/utils/Combo.js +++ b/src/utils/Combo.js @@ -41,13 +41,9 @@ export default function Combo ({valueName, disabled, form, dataList, filterOptio } }} sx={{ - "& .MuiInputBase-root": { - height: "41px", - padding: "0px 0px 0px 8px" - }, - "& .MuiAutocomplete-endAdornment": { - top: "auto" - }, + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 }, "& .MuiInputBase-input.Mui-disabled": { WebkitTextFillColor: "#000000", background: "#f8f8f8", diff --git a/src/utils/SelectBase.js b/src/utils/SelectBase.js index 385e058..806ff0d 100644 --- a/src/utils/SelectBase.js +++ b/src/utils/SelectBase.js @@ -40,13 +40,9 @@ export default function Combo ({valueName, disabled, form, dataList, filterOptio } }} sx={{ - "& .MuiInputBase-root": { - height: "41px", - padding: "0px 0px 0px 8px" - }, - "& .MuiAutocomplete-endAdornment": { - top: "auto" - }, + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 }, "& .MuiInputBase-input.Mui-disabled": { WebkitTextFillColor: "#000000", background: "#f8f8f8",