@@ -5,12 +5,10 @@ import { isDirectory } from 'cozy-client/dist/models/file'
55import { SharedBadge , SharingOwnerAvatar } from 'cozy-sharing'
66import Badge from 'cozy-ui/transpiled/react/Badge'
77import Box from 'cozy-ui/transpiled/react/Box'
8- import GhostFileBadge from 'cozy-ui/transpiled/react/GhostFileBadge'
98import Icon from 'cozy-ui/transpiled/react/Icon'
109import FileTypeServerIcon from 'cozy-ui/transpiled/react/Icons/FileTypeServer'
1110import LinkIcon from 'cozy-ui/transpiled/react/Icons/Link'
1211import TrashDuotoneIcon from 'cozy-ui/transpiled/react/Icons/TrashDuotone'
13- import InfosBadge from 'cozy-ui/transpiled/react/InfosBadge'
1412import Spinner from 'cozy-ui/transpiled/react/Spinner'
1513
1614import styles from '@/styles/filelist.styl'
@@ -169,20 +167,48 @@ const FileThumbnail: React.FC<FileThumbnailProps> = ({
169167 { isRegularShortcut && (
170168 < >
171169 { viewType !== 'grid' ? (
172- < InfosBadge badgeContent = { < Icon icon = { LinkIcon } size = { 10 } /> } >
170+ < Badge
171+ anchorOrigin = { { vertical : 'bottom' , horizontal : 'right' } }
172+ badgeContent = {
173+ < div
174+ className = "u-h-1-half u-miw-1-half u-bdrs-circle u-flex u-flex-items-center u-flex-justify-center"
175+ style = { {
176+ backgroundColor : 'var(--paperBackgroundColor)' ,
177+ color : 'var(--iconTextColor)' ,
178+ boxShadow : 'var(--shadow3)'
179+ } }
180+ >
181+ < Icon icon = { LinkIcon } size = "10" />
182+ </ div >
183+ }
184+ >
173185 { fileIcon }
174- </ InfosBadge >
186+ </ Badge >
175187 ) : (
176188 fileIcon
177189 ) }
178190 </ >
179191 ) }
180192 { isSharingShortcut && (
181- < GhostFileBadge
182- badgeContent = { < SharingShortcutIcon file = { file } size = { 16 } /> }
193+ < Badge
194+ badgeContent = {
195+ < div
196+ className = "u-h-auto u-miw-auto"
197+ style = { {
198+ padding : '3px' ,
199+ backgroundColor : 'white' ,
200+ color : 'var(--coolGrey)' ,
201+ border : '1px solid var(--silver)' ,
202+ borderRadius : '6px'
203+ } }
204+ >
205+ < SharingShortcutIcon file = { file } size = { 16 } />
206+ </ div >
207+ }
208+ anchorOrigin = { { vertical : 'bottom' , horizontal : 'right' } }
183209 >
184210 < SharingOwnerAvatar docId = { file . _id } size = "small" />
185- </ GhostFileBadge >
211+ </ Badge >
186212 ) }
187213 { isInSyncFromSharing && (
188214 < span data-testid = "fil-file-thumbnail--spinner" >
0 commit comments