Nursebuddy - Remove Padding

Modifies padding and height on nurseBuddy.fi, primarily intended for the visit/schedule page though it also changes the client & carer calendar sizes and padding/transition effects globally

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Nursebuddy - Remove Padding
// @description Modifies padding and height on nurseBuddy.fi, primarily intended for the visit/schedule page though it also changes the client & carer calendar sizes and padding/transition effects globally
// @version     1.6
// @author      TomC
// @match       https://app.nursebuddy.fi/*
// @grant       GM_addStyle
// @license     MIT
// @namespace https://greasyfork.org/users/441
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle(`
        *,
        *::before,
        *::after {
            transition: none !important;
        }

        .contentDefaultPaddingBottom { padding-bottom: 0 !important; }
        .panel-heading { padding: 6px !important; }
        body.manager #shellContent { padding-left: 0 !important; padding-right: 0 !important; padding-top: 0 !important; }

        body.manager #mainContentContainer #breadCrumbAndContentContainer #topMenuBarContainer { height: 40px !important; min-height: 40px !important; }
        body.manager #mainContentContainer #breadCrumbAndContentContainer #breadCrumbs .breadCrumbsContainer { height: 40px !important; min-height: 40px !important; }
        [class*="MuiToolbar-regular-_react-injected-view-topMenuBarContainer-"] { height: 40px !important; min-height: 40px !important; }

        body.manager #menuContentSplitter #toggleMenu, body.manager #menuContentSplitter .toggleMenu { visibility: visible !important; opacity: 1 !important; }
        body.manager #menuContentSplitter #toggleMenu.show, body.manager #menuContentSplitter .toggleMenu.show { visibility: visible !important; opacity: 1 !important; }

        .intercom-lightweight-app-launcher { bottom: 50px !important; }
    `);

    adjustStyles();

})();