vonox7 / Youtrack UX improvements

// ==UserScript==
// @name         Youtrack UX improvements
// @version      0.1
// @author       vonox7
// @match        https://*.myjetbrains.com/*
// @grant        none
// @licence      MIT
// @updateURL https://openuserjs.org/meta/vonox7/Youtrack_UX_improvements.meta.js
// @downloadURL https://openuserjs.org/install/vonox7/Youtrack_UX_improvements.user.js
// ==/UserScript==

(function() {
    'use strict';

    let style = document.createElement("style");
    style.innerHTML = `
    /* small cards --> ultra small */
    .yt-agile-card_customizable.yt-agile-card_small .yt-agile-card__summary, .yt-agile-card_customizable.yt-agile-card_small .yt-drag-agile-card__summary {
      width: calc(100% - 32px); float: left; min-height: 8px; margin-bottom: 0;
    }

    .yt-agile-card_customizable.yt-agile-card_small .yt-agile-card__footer {
      float: right; margin-right: -7px; display: grid;
    }


    /* all other card sizes --> remove unneded spacing to make them smaller */
    .yt-agile-card_customizable .yt-agile-card__summary, .yt-agile-card_customizable .yt-drag-agile-card__summary {
      min-height: calc(var(--ring-unit) * 2.5);
    }
    `;
    document.body.appendChild(style);
})();