Skip to content

feat:Add ViewHeightScrollable#306

Merged
LittleLittleCloud merged 10 commits intoRazorConsole:mainfrom
TeseySTD:feat/scrollable-height
Mar 4, 2026
Merged

feat:Add ViewHeightScrollable#306
LittleLittleCloud merged 10 commits intoRazorConsole:mainfrom
TeseySTD:feat/scrollable-height

Conversation

@TeseySTD
Copy link
Member

@TeseySTD TeseySTD commented Feb 22, 2026

Overview

This PR adds ViewHeightScrollable component that is able to scroll over any content line by line.
It has almost the same api as default Scrollable, with Scrollbar and embedded mode for Panel, Border and Table.
Using this component, user can scroll through anything, so it makes UI more readable.

What was done

  1. I've extended existing gallery examples by adding this component in all places where code is too large, for example:
img1 img2

Also extended default scrollable example:
example

  1. Added website example as separate component.
  2. Extend ScrollableWithBarRenderable to just ScrollableRenderable for both scroll components.
  3. Separate ScrollbarSettings into class in RazorConsole.Core.Rendering namespace.
  4. Make new singleton service ScrollableLayoutCoordinator that enables transferring maxOffset between component and ScrollableRenderable. It is impossible to get this offset in component itself because it don't know how the content actually renders.
  5. Extend test for ScrollableRenderable.

@TeseySTD TeseySTD requested review from LittleLittleCloud and ParadiseFallen and removed request for ParadiseFallen February 22, 2026 18:14
@TeseySTD TeseySTD added the enhancement New feature or request label Feb 22, 2026
@github-actions
Copy link

github-actions bot commented Feb 22, 2026

🚀 Preview Deployment

A preview build has been generated for this PR from CI run #22690924589!

Download the artifact:
website-preview-306-138e3b01cbdb03f9d423156b915b25dd7f22756e

To view the preview locally:

  1. Download the artifact from the CI workflow run
  2. Extract the ZIP file
  3. Serve the files with a local web server
    (e.g., npx serve dist)

🌐 Live Preview URL: https://33e43fd0.razorconsole.pages.dev

The live preview will be automatically updated when you push new
commits to this PR.

@LittleLittleCloud
Copy link
Member

All good, thanks @TeseySTD

@LittleLittleCloud LittleLittleCloud merged commit 7320004 into RazorConsole:main Mar 4, 2026
8 checks passed
@github-actions github-actions bot added this to the v0.5.0 milestone Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants