[enhancement] Allow icons to be at the beginning of the file title #445
Replies: 5 comments 2 replies
-
This would be very helpful. |
Beta Was this translation helpful? Give feedback.
-
This snippet works for me: .dataview.table-view-table > tbody > tr > td:first-child > span{
display: grid;
grid-template-columns: auto auto;
float: left;
}
.dataview.table-view-table > tbody > tr > td:first-child > span > a.internal-link{
grid-column: 2;
}
.dataview.table-view-table > tbody > tr > td:first-child > span > a.fileclass-icon{
grid-area: 1;
margin-right: 0.375em;
} |
Beta Was this translation helpful? Give feedback.
-
@mdelobelle's solution seems to work. Thanks for that. A couple of comments
|
Beta Was this translation helpful? Give feedback.
-
I came here to ask for the same thing, and luckily found this discussion topic before posting something new. :) Unlike @Smitty010's request (I haven't got far enough with Dataview to run into this), my hope was to be able to have the icon on the left both inline in the main editor text and (more especially) in the File Explorer tree. I went looking for a way to accomplish it with CSS alone, but couldn't figure it out, because it looks like the How challenging would it be to add a toggle or dropdown that would allow officially displaying the icon as a prefix rather than a suffix? Or, if the full settings UI integration is more time-consuming, is there one spot in the |
Beta Was this translation helpful? Give feedback.
-
I Use this snippet: .data-link-icon[data-link-tags]::before{
content: attr(data-link-tags)" ";
} Replace I have to say that this snippets relies on Supercharged Links Instead of Metadata Menu. I found something similar in This video from Bryan Jenks. But it's very useful. You just have to put the attributes you want for an Icon in the target Attributes for Stilying setting in Supercharged Links. But I don't really know how to do it using Metadata Menu. |
Beta Was this translation helpful? Give feedback.
-
It would be nice if there was an option to choose whether the icon appears at the beginning or the end of the filename. When I list files using dataview, I often can't see the icon because the filename is too long
Beta Was this translation helpful? Give feedback.
All reactions