Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
fix(ui): Make right column scrollable again
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jul 17, 2021
1 parent 9367e33 commit bd4ea99
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/userscript/source/ui/UserInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class UserInterface {
}

private _installCss(): void {
// Basic layout for the list-based options menus.
// Basic layout for our own list-based options menus.
this._addRule(`#ks-options ul { list-style: none; margin: 0 0 5px; padding: 0; }`);
this._addRule(`#ks-options ul:after { clear: both; content: " "; display: block; height: 0; }`);
this._addRule(`#ks-options ul li { display: block; float: left; width: 100%; }`);
Expand All @@ -142,6 +142,9 @@ export class UserInterface {
color: #DD1E00;
}`);

// Ensure the right column gets a scrollbar, when our content extends it too far down.
this._addRule(`body #gamePageContainer #game #rightColumn { overflow-y: auto }`);

// Set the entire UI to a monospace font.
//this._addRule(
// "body {" + // low priority. make sure it can be covered by the theme
Expand Down Expand Up @@ -174,8 +177,6 @@ export class UserInterface {

this._addRule(`${defaultSelector} #rightColumn { overflow-y: auto; height: 92%; width: 19%; }`);

this._addRule(`body #gamePageContainer #game #rightColumn { overflow-y: auto }`);

this._addRule(
`${defaultSelector} #gameLog { overflow-y: hidden !important; width: 100% !important; padding-top: 5px !important; }`
);
Expand Down

0 comments on commit bd4ea99

Please sign in to comment.