From 31f74262dd45e788d111822f6ba82b08565ba6b5 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 2 Aug 2022 11:30:33 +0200 Subject: [PATCH] [full-ci] Show file icon if no thumbnail is present (#7344) Show file icon if no thumbnail is present --- .../bugfix-missing-file-icon-in-details-panel | 6 +++ .../SideBar/Details/FileDetails.vue | 16 ++++++- .../src/components/SideBar/FileInfo.vue | 46 ++++++++++++++++++- .../__snapshots__/FileDetails.spec.js.snap | 24 +++++++--- ...-failures-with-oc10-server-oauth2-login.md | 8 ++-- ...-failures-with-ocis-server-ocis-storage.md | 12 ++--- .../webUIFilesDetails/fileDetails.feature | 42 +++++++++++------ .../FilesPageElement/appSideBar.js | 20 ++++++-- .../stepDefinitions/filesContext.js | 9 ++-- 9 files changed, 144 insertions(+), 39 deletions(-) create mode 100644 changelog/unreleased/bugfix-missing-file-icon-in-details-panel diff --git a/changelog/unreleased/bugfix-missing-file-icon-in-details-panel b/changelog/unreleased/bugfix-missing-file-icon-in-details-panel new file mode 100644 index 00000000000..4a722ad3ce2 --- /dev/null +++ b/changelog/unreleased/bugfix-missing-file-icon-in-details-panel @@ -0,0 +1,6 @@ +Bugfix: Missing file icon in details panel + +We've fixed a bug where the file icon in the details panel was not shown, if no preview was available. + +https://github.com/owncloud/web/pull/7344 +https://github.com/owncloud/web/issues/7337 diff --git a/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue b/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue index f22c40b58ff..2d64ca1beb8 100644 --- a/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue +++ b/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue @@ -12,6 +12,12 @@ > +
+ +
svg { + height: 192px !important; + max-height: 192px !important; + max-width: 192px !important; + width: 192px !important; +} diff --git a/packages/web-app-files/src/components/SideBar/FileInfo.vue b/packages/web-app-files/src/components/SideBar/FileInfo.vue index 7a9b7f45849..27fd363b574 100644 --- a/packages/web-app-files/src/components/SideBar/FileInfo.vue +++ b/packages/web-app-files/src/components/SideBar/FileInfo.vue @@ -1,6 +1,11 @@