Neue Artikel UI Bilder zu klein?

Moin,

für alle denen die Bilder in der neuen Arikel UI zu klein sind hier ein Tempermonkey script:

// ==UserScript==
// @name Plentymarkets - Größere Artikelbilder
// @namespace http://tampermonkey.net/
// @version 2.0
// @match ://pxxx.my.plentysystems.com/
// @grant GM_addStyle
// @run-at document-idle
// ==/UserScript==

(function() {
‚use strict‘;

GM_addStyle(`
    .imageContainer {
        width: 100px !important;
        height: 100px !important;
    }
    .imageContainer img {
        width: 100px !important;
        height: 100px !important;
        object-fit: contain !important;
    }
    .mat-mdc-cell.cdk-cell.mat-column-image {
        height: 110px !important;
        padding: 5px !important;
    }
`);

})();

bei @match eure plenty URL eintragen.

Nutzung auf eigene Gefahr.

Schönes Wochenende :slight_smile:

Gruß Marco

1 „Gefällt mir“

Das Forum hat dir deinen Code zerhagelt :wink:

Ich denke, das sollte so
// ==UserScript==
// @name Plentymarkets - Größere Artikelbilder
// @namespace http://tampermonkey.net/
// @version 2.0
// @match https://pxxxx.my.plentysystems.com/*
// @grant GM_addStyle
// @run-at document-idle
// ==/UserScript==

(function() {
"use strict";


GM_addStyle(`
    .imageContainer {
        width: 100px !important;
        height: 100px !important;
    }
    .imageContainer img {
        width: 100px !important;
        height: 100px !important;
        object-fit: contain !important;
    }
    .mat-mdc-cell.cdk-cell.mat-column-image {
        height: 110px !important;
        padding: 5px !important;
    }
`);
})();

Und: du vergrößerst nicht nur die Artikelbilder, sondern auch die Grafik der Verfügbarkeit :stuck_out_tongue:

Aber: ich hab mich von dir inspirieren lassen und mir das object-fit in die Varianten-Bilder geholt „in“ der Variante. Die wurden ziemlich unsinnig beschnitten :ok_hand:

Viel besser

Grüße

2 „Gefällt mir“