whitebophir icon indicating copy to clipboard operation
whitebophir copied to clipboard

Configuration to set the width of the board?

Open droundy opened this issue 5 years ago • 5 comments

It would be lovely to have a configuration to set the width of the board, and just have that fixed. That would force users to only scroll down, which I think would make it harder to simply fail to notice that something was written off-screen.

droundy avatar Aug 20 '20 23:08 droundy

Hello @droundy ! Would you be interested in implementing that feature ?

lovasoa avatar Aug 21 '20 06:08 lovasoa

I would be potentially, but would definitely need guidance. I've been hacking a bit and having trouble understanding enough of the design to make my changes.

droundy avatar Aug 21 '20 12:08 droundy

Hi I was doing a function like this, just split the max board size into two variables and replace them in the server validation code and the zoom on the client (maybe somewhere else, but I forgot), then do Tools.scale = document.body.clientWidth / Tools. server_config.MAX_BOARD_SIZE_X; on page load. If @lovasoa is interested in using a function like this I can do it

shabashev-ivan avatar Aug 24 '20 20:08 shabashev-ivan

That sounds lovely. If you submit a pull request I could use it as a starting point even if @lovasoa wanted a different interface.

droundy avatar Aug 25 '20 22:08 droundy

@lovasoa Should I open a new Issue for keeping the board size infinite but zooming the content into view on first connection? This would mean that the whole content of the board is visible, independent of the screen size of the device connected. The user could zoom in afterwards.

DanielHabenicht avatar Apr 05 '22 17:04 DanielHabenicht