glkote icon indicating copy to clipboard operation
glkote copied to clipboard

In a typical single text-buffer set up move the scrollbar to the page side

Open curiousdannii opened this issue 5 years ago • 3 comments

It would in theory be possible to detect whether the window arrangement has a typical single text-buffer, and if so to do some shenanigans to move the scroll bar to the side of the page. Maybe the <div> dimensions would be stretched to the page limits, and an inner div (or padding?) was used to limit the width of the window. If GlkOte was ever changed to use the flex box system it might be simpler?

Low priority, and rather hacky, but raising this issue so that the idea isn't forgotten.

curiousdannii avatar Oct 03 '20 05:10 curiousdannii

I investigated this while trying to research #50 (but wound up solving it another way).

What I did was to set the buffer window to position: static and all other windows to position: fixed. It was fine, but it didn't solve any of my problems, so I didn't turn it into a PR.

(What problem is this intended to solve?)

dfabulich avatar Nov 29 '21 10:11 dfabulich

(What problem is this intended to solve?)

This ugliness. But it could also be helped with some scroll bar styles.

Screenshot from Photopia

curiousdannii avatar Nov 30 '21 03:11 curiousdannii

These styles work nicely (in Webkit at least)

.BufferWindow {
    overflow: auto;
    scrollbar-gutter: stable;
}
.BufferWindow::-webkit-scrollbar {
    width: 10px;
}
.BufferWindow::-webkit-scrollbar-thumb {
    background: rgba(50%,50%,50%,25%);
}

Screenshot from Photopia with new styles

curiousdannii avatar Nov 30 '21 12:11 curiousdannii