From 72b32df2b74743bede6fff0dbc37fec352cff51f Mon Sep 17 00:00:00 2001 From: mei23 Date: Sat, 24 Aug 2019 05:53:30 +0900 Subject: [PATCH] Fix #5338 --- src/client/app/common/views/components/media-list.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/components/media-list.vue b/src/client/app/common/views/components/media-list.vue index b0a14be0d4..c3eec59c79 100644 --- a/src/client/app/common/views/components/media-list.vue +++ b/src/client/app/common/views/components/media-list.vue @@ -35,7 +35,9 @@ export default Vue.extend({ mounted() { //#region for Safari bug if (this.$refs.grid) { - this.$refs.grid.style.height = this.$refs.grid.clientHeight ? `${this.$refs.grid.clientHeight}px` : '128px'; + if (this.$refs.grid.clientHeight) { + this.$refs.grid.style.height = this.$refs.grid.clientHeight; + } } //#endregion },