Skip to content

Allow longer initiative effect names - #1763

Merged
Kruptein merged 8 commits into
Kruptein:devfrom
rexy712:allow-longer-initiative-effect-names
Feb 5, 2026
Merged

Kruptein merged 8 commits into
Kruptein:devfrom
rexy712:allow-longer-initiative-effect-names

Conversation

@rexy712

@rexy712 rexy712 commented Jan 28, 2026 •

Copy link
Copy Markdown
Contributor

This replaces the input element for initiative effect names with a textarea and also increases the width of the effect list. This allows longer names to be used in the textbox, and even if the name is too long, the text will wrap.

Code is not in a fully cleaned up state as the known issues currently prevent this from being completed.

Known Issues: The textareas for the names of effects that span multiple lines do not automatically resize to fit the text when first loading the initiative tracker. Once a single character is typed, the textarea fits to the text as expected. I have no idea how to fix this.

Edit

The issue of initial resizing has been fixed by adding a prop 'visible' to the ResizingTextArea component. Passing a value to this prop allows it to have a pseudo callback for when the component becomes visible and make the textbox resize at that point.

This now also accounts for when the text is changed from outside the ResizingTextArea component, resizing to fit the new content.

I've also added a separator line between effects since they now have variable heights. This makes it easier to tell where one ends and the next begins.

Fixes #1766

@rexy712
rexy712 marked this pull request as ready for review January 28, 2026 20:39

@Kruptein Kruptein left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

These are almost all nitpick/style changes

@Kruptein
Kruptein merged commit 664d883 into Kruptein:dev Feb 5, 2026
8 checks passed
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.

[FEAT] Longer Initiative Tracker Names

2 participants