fix: added draggable="false" to file-icon and created a class in styles ".file-icon".

formated file
fix: width space on file icon
fix: format
This commit is contained in:
Matías Fuentes 2024-03-07 23:15:04 -03:00 committed by Mattias Granlund
parent acb25f3d98
commit c69ca25cbd

View File

@ -98,7 +98,7 @@
> >
<div class="info-wrap"> <div class="info-wrap">
<div class="info"> <div class="info">
<img src={getVSIFileIcon(file.path)} alt="js" style="width: var(--space-12)" /> <img draggable="false" class="file-icon" src={getVSIFileIcon(file.path)} alt="js" />
<span class="text-base-12 name"> <span class="text-base-12 name">
{file.filename} {file.filename}
</span> </span>
@ -160,6 +160,10 @@
gap: var(--space-6); gap: var(--space-6);
overflow: hidden; overflow: hidden;
} }
.file-icon {
width: var(--space-12);
}
.name { .name {
color: var(--clr-theme-scale-ntrl-0); color: var(--clr-theme-scale-ntrl-0);
white-space: nowrap; white-space: nowrap;