Skip to content

Instantly share code, notes, and snippets.

@fffonion
Last active September 25, 2023 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fffonion/4f7bd4511ca1b6798ec422ae37fd5376 to your computer and use it in GitHub Desktop.
Save fffonion/4f7bd4511ca1b6798ec422ae37fd5376 to your computer and use it in GitHub Desktop.
github-widescreen.user.js
// ==UserScript==
// @name Github Widescreen Fix
// @namespace http://tampermonkey.net/
// @updateURL https://gist.github.com/fffonion/4f7bd4511ca1b6798ec422ae37fd5376/raw/github-widescreen.user.js
// @downloadURL https://gist.github.com/fffonion/4f7bd4511ca1b6798ec422ae37fd5376/raw/github-widescreen.user.js
// @version 0.2
// @description try to take over the world!
// @author You
// @match https://github.com/*/*/actions/runs/*/job/*
// @match https://github.com/*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle(`
@media (min-width: 1600px) {
.PageLayout.PageLayout--paneWidth-wide {
--Layout-pane-width: 500px;
}
.container-xl {
max-width: calc(100vw - 480px);
}
}
@media (min-width: 1440px) {
.PageLayout.PageLayout--paneWidth-wide {
--Layout-pane-width: 400px;
}
}
`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment