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

Center name in mobile account page #1851

Conversation

joel-jeremy
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Nov 3, 2023

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 82b7bd4
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/65565c868b2d49000983a4c5
😎 Deploy Preview https://deploy-preview-1851.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.

Copy link
Contributor

github-actions bot commented Nov 3, 2023

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
16 2.97 MB → 2.97 MB (+19 B) +0.00%
Changeset
File Δ Size
src/components/accounts/MobileAccountDetails.js 📈 +57 B (+0.51%) 10.81 kB → 10.87 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/narrow-components.chunk.js 53.17 kB → 53.19 kB (+19 B) +0.03%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/main.js 1.15 MB 0%
static/js/665.chunk.js 824.28 kB 0%
static/media/Inter-italic.var.woff2 239.29 kB 0%
static/media/Inter-roman.var.woff2 221.86 kB 0%
static/js/444.chunk.js 156.11 kB 0%
static/js/wide-components.chunk.js 127.18 kB 0%
static/js/231.chunk.js 117.37 kB 0%
static/js/reports.chunk.js 74.37 kB 0%
static/js/301.chunk.js 13.31 kB 0%
static/js/473.chunk.js 13 kB 0%
static/js/resize-observer-polyfill.chunk.js 8.88 kB 0%
static/css/main.css 7.41 kB 0%
asset-manifest.json 2.07 kB 0%
index.html 1.66 kB 0%
static/media/browser-server.js 903 B 0%

Copy link
Contributor

github-actions bot commented Nov 3, 2023

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
2 2.22 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.23 MB 0%
xfo.xfo.kcab.worker.js 1014.46 kB 0%

@MatissJanis
Copy link
Member

Would you mind posting a before & after screenshot? I'm not sure where to look.

@joel-jeremy
Copy link
Contributor Author

I'm on mobile right now, but you can try creating an account with a long name and open the account details. Without this change, the long account name will be left aligned.

@MatissJanis
Copy link
Member

Ok, I see now. Hmm.. I wonder if it would be better to truncate it with an ellipsis instead.

Screenshot 2023-11-04 at 15 43 46

@joel-jeremy
Copy link
Contributor Author

That's also possible. Maybe truncate after 2 lines, just like the category names in the mobile budget page?

@MatissJanis
Copy link
Member

That's also possible. Maybe truncate after 2 lines, just like the category names in the mobile budget page?

I'm not a big fan of how we handle category names currently in the budget page.

For example:

Screenshot 2023-11-05 at 14 58 34

Personally I think just allowing a single line and truncating with an ellipsis makes for the most aesthetically pleasing interface, but I don't want to impose my view on this too much. Happy to go with the 2-line approach too :)

@joel-jeremy
Copy link
Contributor Author

I'm also good with truncating a single line but we need to add a way for users to view the entire account name. Any ideas?

@MatissJanis
Copy link
Member

I'm also good with truncating a single line but we need to add a way for users to view the entire account name. Any ideas?

Maybe opening a tooltip or modal on long click? Though maybe that's an overkill..

https://minwork.gitbook.io/long-press-hook/

@joel-jeremy
Copy link
Contributor Author

joel-jeremy commented Nov 7, 2023

A modal could work. We could also extend it to show/edit the notes, rename/close/export account, and reconcile (but maybe we should create another modal for reconcile which opens when the amount is clicked on the mobile account page and this other modal also shows the cleared/uncleared totals).

And the same thing could also be applied to the budget category name. It could open a modal on click which shows/edits the category name and the category notes, but that could be done on another PR.

carkom
carkom previously approved these changes Nov 9, 2023
Copy link
Contributor

@carkom carkom left a comment

Choose a reason for hiding this comment

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

All good!

Copy link
Contributor

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Dec 17, 2023
Copy link
Contributor

This PR was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants