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

Modify goals-list and connections-list to automatically adapt to text size #140

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

RostCS
Copy link
Contributor

@RostCS RostCS commented Oct 30, 2024

Type
What type of pull request is this? (e.g., Bug fix, Feature, Refactor, etc.)

  • Bug fix
  • Feature
  • Refactor
  • Other (please describe):

Description
Currently, the goals and connections list are not configured to scale, and automatically force a height of 2rem for all elements. This leads to overflow issues when larger goals or connections are written.

I have modified the height to be automatic and added a small amount of padding on the top and bottom so the text looks naturally seated within the range. The overall height for a one-line goal is the same(.25 top padding, 1.5 min-size, .25 bottom padding)

Related Issue
Closes #112

How Has This Been Tested?
Tested goals and connections of various sizes, and verify that all previous elements fit and still work as intended.

Screenshots (if applicable)
Before:
image

After:
image

Checklist:

  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes do not introduce any new warnings or errors.
  • My PR does not contain any copyrighted works that I do not have permission to use.
  • I have tested my changes on Foundry VTT version: 12.331
    Additional context
    Add any other context or information here that would be useful for reviewers.

@stanavdb stanavdb self-requested a review October 31, 2024 18:13
Copy link
Collaborator

@stanavdb stanavdb left a comment

Choose a reason for hiding this comment

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

I'm running into an issue with the connections; When you expand a connection with more than a single line, it pushes the title up into the previous connection / the header.

Other than that it looks good!

image

@RostCS
Copy link
Contributor Author

RostCS commented Oct 31, 2024

Ah I'll likely have to add the same autoscaling to the description section, did not run into that issue in my personal testing. Will fix that later today

@RostCS
Copy link
Contributor Author

RostCS commented Oct 31, 2024

Corrected
image

@RostCS RostCS requested a review from stanavdb October 31, 2024 22:12
Copy link
Collaborator

@stanavdb stanavdb left a comment

Choose a reason for hiding this comment

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

Looks good now! Thanks!

@stanavdb stanavdb merged commit 84a7c16 into the-metalworks:release-0.1.2 Nov 1, 2024
1 check passed
@stanavdb
Copy link
Collaborator

stanavdb commented Nov 1, 2024

Just for the sake of tracking who closed what issues, can you leave a comment on #112? Can't assign you, unless you leave a comment

@RostCS
Copy link
Contributor Author

RostCS commented Nov 1, 2024

Just for the sake of tracking who closed what issues, can you leave a comment on #112? Can't assign you, unless you leave a comment

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants