Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix#44356 link preview folder icon color updated
Signed-off-by: JEEEEEEEEEEEEEEEEEEEEEED <[email protected]>
  • Loading branch information
JED-B committed Mar 30, 2024
commit afaba47a609afdb6de6ed54509834fd3ec913e7a
25 changes: 13 additions & 12 deletions apps/files/css/files.scss
Original file line number Diff line number Diff line change
Expand Up @@ -348,18 +348,19 @@ table td.filename .thumbnail-wrapper.icon-loading-small {
}
}
table td.filename .thumbnail {
display: inline-block;
width: 32px;
height: 32px;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
margin-left: 9px;
margin-top: 9px;
border-radius: var(--border-radius);
cursor: pointer;
position: absolute;
z-index: 4;
display: inline-block;
width: 32px;
height: 32px;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
margin-left: 9px;
margin-top: 9px;
border-radius: var(--border-radius);
cursor: pointer;
position: absolute;
z-index: 4;
background-color: var(--primary-color); /* Set the background color to the primary color */
}
table td.filename p.name .thumbnail {
cursor: default;
Expand Down
3 changes: 2 additions & 1 deletion apps/files/src/views/ReferenceFileWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
:href="richObject.link"
target="_blank"
@click="navigate">
<span class="widget-file__image" :class="filePreviewClass" :style="filePreviewStyle">
<span class="widget-file__image" :class="filePreviewClass" :style="{ backgroundColor: primaryColor }">
Copy link
Contributor

@susnux susnux Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not simply putting this into the widget-file__image class styles? The color is never changed, no?

<template v-if="!previewUrl">
<FolderIcon v-if="isFolder" :size="88" />
<FileIcon v-else :size="88" />
Expand Down Expand Up @@ -141,6 +141,7 @@ export default defineComponent({
return {
previewUrl: null as string | null,
failedViewer: false,
primaryColor: 'var(--primary-color)'
}
},

Expand Down