Narrow desktop thumbnails are stretched
📦 Version and System
GNOME Shell 3.36.2
GNOME nautilus 3.36.2
GNOME nautilus 3.36.2
nont@nont-LIFEBOOK-AH532:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
{
"name": "Desktop Icons",
"description": "Add icons to the desktop",
"uuid": "desktop-icons@csoriano",
"shell-version": ["3.34.0"]
}
Optionally, can it be reproduced with the git version in this repository?
📜 Description of the Issue
Margins are ignored in fileItem.js. When aspect ratio of the thumbnail is less than that of the container, the height of the container is equal the the height of the thumbnail. However, the width of the container is not correctly calculated (or, alternatively, the additional margins can be added to the icon.margin_right and icon.margin_left). See screenshot. The downstream bug in launchpad:
Bug #1880031 “Thumbnail is stretched if its aspect ratio is less...” : Bugs : gnome-shell-extension-desktop-icons package : Ubuntu https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons/+bug/1880031
The related bug is #190 (closed). The fix is good, but the margins are still ignored. It was before the fix, and remains the same after that.
The downstream bug for the latter one is Bug #1868529 “Stretched image previews on desktop” : Bugs : gnome-shell-extension-desktop-icons package : Ubuntu https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons/+bug/1868529