Skip to content

Conversation

@joenunezb
Copy link
Contributor

@joenunezb joenunezb commented Oct 21, 2024

Adding a simple scrollbar to buttons created via /buttons command. Tested with a simple QR CoT script. I also clicked around with LenAnderson's Codex and did not see any particular regressions.

No errors reported in console log, tested a few variations of sizes with Chrome's device toolbar and everything looked fine.

Before:

PC:

before_Recording.2024-10-21.002601.mp4

Mobile (bonus):

before_Screen_Recording_20241021_002741_Chrome.mp4

After:

PC:

after_Recording.2024-10-21.000650.mp4

Mobile (bonus):

Screen_Recording_20241021_000517_Chrome.mp4

Checklist:

@joenunezb joenunezb changed the title Enhancement make buttons scrollable Enhancement: Make buttons scrollable Oct 21, 2024
buttonContainer.classList.add('flex-container', 'flexFlowColumn', 'wide100p');

const scrollableContainer = document.createElement('div');
scrollableContainer.style.maxHeight = '50vh'; // Use viewport height instead of fixed pixels
Copy link
Member

Choose a reason for hiding this comment

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

Try not to mix styles with code. Move that to a CSS file and set a class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review! I'll get to this on the weekend and will push out a commit.

Copy link
Contributor Author

@joenunezb joenunezb Nov 17, 2024

Choose a reason for hiding this comment

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

@Cohee1207 , I've addressed the comment and re-tested. Would you like me to re-upload videos of the feature still working? I tested on mobile and PC.

@joenunezb joenunezb requested a review from Cohee1207 November 17, 2024 23:55
Copy link
Member

@Cohee1207 Cohee1207 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.

@Cohee1207 Cohee1207 merged commit 5f44fb8 into SillyTavern:staging Nov 18, 2024
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