Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent modal paddings #2571

Merged
merged 11 commits into from
Apr 22, 2024
Merged

Consistent modal paddings #2571

merged 11 commits into from
Apr 22, 2024

Conversation

joel-jeremy
Copy link
Contributor

@joel-jeremy joel-jeremy commented Apr 9, 2024

Use the consistent paddings for modals

@github-actions github-actions bot changed the title Update modal paddings [WIP] Update modal paddings Apr 9, 2024
Copy link
Contributor

github-actions bot commented Apr 9, 2024

Bundle Stats — desktop-client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
9 4.67 MB → 4.67 MB (-2.97 kB) -0.06%
Changeset
File Δ Size
src/components/modals/CreateAccountModal.tsx 🆕 +8.09 kB 0 B → 8.09 kB
src/components/modals/CreateLocalAccountModal.tsx 🆕 +5.97 kB 0 B → 5.97 kB
src/components/modals/SwitchBudgetTypeModal.tsx 📈 +96 B (+5.14%) 1.83 kB → 1.92 kB
src/components/Modals.tsx 📈 +10 B (+0.07%) 14.7 kB → 14.71 kB
src/components/modals/EditRule.jsx 📉 -16 B (-0.05%) 34.51 kB → 34.5 kB
src/components/modals/MergeUnusedPayees.jsx 📉 -16 B (-0.25%) 6.27 kB → 6.25 kB
src/components/modals/RolloverBudgetSummaryModal.tsx 📉 -6 B (-0.31%) 1.88 kB → 1.88 kB
src/components/modals/LoadBackup.jsx 📉 -16 B (-0.34%) 4.61 kB → 4.6 kB
src/components/manager/DeleteFile.tsx 📉 -16 B (-0.38%) 4.15 kB → 4.13 kB
src/components/modals/ReportBudgetSummaryModal.tsx 📉 -6 B (-0.52%) 1.12 kB → 1.11 kB
src/components/modals/EditField.jsx 📉 -43 B (-0.59%) 7.17 kB → 7.13 kB
src/components/modals/CreateEncryptionKeyModal.tsx 📉 -59 B (-0.74%) 7.79 kB → 7.73 kB
src/components/modals/RolloverBudgetMonthMenuModal.tsx 📉 -59 B (-1.08%) 5.31 kB → 5.26 kB
src/components/modals/FixEncryptionKeyModal.tsx 📉 -59 B (-1.09%) 5.31 kB → 5.25 kB
src/components/modals/ReportBudgetMonthMenuModal.tsx 📉 -59 B (-1.11%) 5.18 kB → 5.12 kB
src/components/modals/CategoryGroupMenuModal.tsx 📉 -114 B (-1.94%) 5.72 kB → 5.61 kB
src/components/modals/CategoryMenuModal.tsx 📉 -114 B (-2.24%) 4.97 kB → 4.86 kB
src/components/modals/AccountMenuModal.tsx 📉 -114 B (-2.28%) 4.89 kB → 4.78 kB
src/components/modals/RolloverBudgetMenuModal.tsx 📉 -58 B (-2.47%) 2.29 kB → 2.23 kB
src/components/modals/ReportBudgetMenuModal.tsx 📉 -58 B (-2.48%) 2.29 kB → 2.23 kB
src/components/common/Modal.tsx 📉 -358 B (-3.49%) 10.01 kB → 9.67 kB
src/components/modals/CategoryAutocompleteModal.tsx 📉 -86 B (-4.16%) 2.02 kB → 1.94 kB
src/components/modals/TransferModal.tsx 📉 -154 B (-4.56%) 3.3 kB → 3.15 kB
src/components/modals/AccountAutocompleteModal.tsx 📉 -86 B (-4.65%) 1.81 kB → 1.72 kB
src/components/modals/PayeeAutocompleteModal.tsx 📉 -86 B (-5.73%) 1.47 kB → 1.38 kB
src/components/modals/Notes.tsx 📉 -120 B (-6.00%) 1.95 kB → 1.83 kB
src/components/modals/ManageRulesModal.tsx 📉 -50 B (-6.69%) 747 B → 697 B
src/components/modals/BudgetPageMenuModal.tsx 📉 -127 B (-6.80%) 1.83 kB → 1.7 kB
src/components/modals/RolloverBalanceMenuModal.tsx 📉 -127 B (-6.85%) 1.81 kB → 1.69 kB
src/components/modals/ReportBalanceMenuModal.tsx 📉 -127 B (-7.11%) 1.75 kB → 1.62 kB
src/components/modals/ScheduledTransactionMenuModal.tsx 📉 -127 B (-9.67%) 1.28 kB → 1.16 kB
src/components/modals/CoverModal.tsx 📉 -281 B (-10.24%) 2.68 kB → 2.41 kB
src/components/modals/SingleInputModal.tsx 📉 -305 B (-14.02%) 2.13 kB → 1.83 kB
src/components/modals/HoldBufferModal.tsx 📉 -289 B (-14.41%) 1.96 kB → 1.68 kB
src/components/modals/RolloverToBudgetMenuModal.tsx 📉 -127 B (-17.91%) 709 B → 582 B
src/components/modals/CreateAccount.tsx 🔥 -8.08 kB (-100%) 8.08 kB → 0 B
src/components/modals/CreateLocalAccount.tsx 🔥 -5.87 kB (-100%) 5.87 kB → 0 B
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

Asset File Size % Changed
static/js/index.js 2.99 MB → 2.99 MB (-2.97 kB) -0.10%

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/narrow.js 59.72 kB 0%
static/js/usePreviewTransactions.js 790 B 0%
static/js/AppliedFilters.js 20.35 kB 0%
static/js/wide.js 263.56 kB 0%
static/js/ReportRouter.js 1.19 MB 0%

Copy link
Contributor

github-actions bot commented Apr 9, 2024

Bundle Stats — loot-core

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
1 1.2 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.js 1.2 MB 0%

@joel-jeremy joel-jeremy changed the title [WIP] Update modal paddings [WIP] Consistent modal paddings Apr 9, 2024
Base automatically changed from budget-add-category-or-group-menu to master April 11, 2024 19:41
@joel-jeremy joel-jeremy changed the title [WIP] Consistent modal paddings Consistent modal paddings Apr 13, 2024
Copy link

netlify bot commented Apr 13, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 611e960
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/6626919e82562c0008aa0e81
😎 Deploy Preview https://deploy-preview-2571.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@joel-jeremy joel-jeremy force-pushed the modal-paddings branch 2 times, most recently from 03b3274 to b4f15fe Compare April 17, 2024 18:46
@@ -23,26 +23,32 @@ export function ReportBudgetSummaryModal({
}: ReportBudgetSummaryModalProps) {
const currentMonth = monthUtils.currentMonth();
return (
<Modal title="Budget Summary" {...modalProps}>
{() => (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lambda

@@ -78,28 +78,34 @@ export function RolloverBudgetSummaryModal({
};

return (
<Modal title="Budget Summary" {...modalProps}>
{() => (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lambda

borderRadius: '6px',
}}
>
{() => (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lambda

@@ -28,45 +28,51 @@ export function SwitchBudgetTypeModal({
}
: {};
return (
<Modal title="Switch budget type?" {...modalProps}>
{() => (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lambda

borderRadius: '6px',
}}
>
{() => (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lambda

borderRadius: '6px',
}}
>
{() => (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lambda

borderRadius: '6px',
}}
>
{() => (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lambda

borderRadius: '6px',
}}
>
{() => (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lambda

@@ -42,11 +42,10 @@ export function AccountAutocompleteModal({
focusAfterClose={false}
{...modalProps}
onClose={_onClose}
padding={0}
padding={10}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ question: would it make sense to move the padding=10 inside the Modal component as the default value? Seems like it's used universally almost everywhere now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also style = { flex: 1, borderRadius: '6px' }

MatissJanis
MatissJanis previously approved these changes Apr 22, 2024
MatissJanis
MatissJanis previously approved these changes Apr 22, 2024
@joel-jeremy joel-jeremy merged commit 53b5f3a into master Apr 22, 2024
19 checks passed
@joel-jeremy joel-jeremy deleted the modal-paddings branch April 22, 2024 17:50
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants