Skip to content

Instantly share code, notes, and snippets.

@Cyclodex
Created September 20, 2017 13:13
Show Gist options
  • Save Cyclodex/766db87050523e172766cafaf08a08e4 to your computer and use it in GitHub Desktop.
Save Cyclodex/766db87050523e172766cafaf08a08e4 to your computer and use it in GitHub Desktop.
Make the textarea field on gitlab (nothing galaxy) full width
// ==UserScript==
// @name Galaxy/Gitlab: Wider editing window
// @namespace Cyclodex
// @version 0.1
// @description Increase the editing text-area for big screens on (gitlab on galaxy)
// @author Cyclodex <cyclodex@nothing.ch>
// @match https://galaxy.nothing.ch/*/issues/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function increaseEditField() {
// When adding an image, instead of an empty tag, this takes the latest added attachment path as well
$('.container-fluid.container-limited.limit-container-width').css('max-width', 'none');
$('.detail-page-description.content-block').css('max-width', 'none');
$('.zen-backdrop.fullscreen textarea').css('max-width', 'none');
console.log($('.container-fluid.container-limited.limit-container-width').css('max-width'));
console.log($('.detail-page-description.content-block').css('max-width'));
}
// add button when ajax request was done (otherwise we loose the buttons)
$( document ).ajaxComplete(function() {
increaseEditField();
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment