Current file coloring

This commit is contained in:
Jordan Goulder 2025-01-24 22:52:27 -05:00
parent 928b2ec6aa
commit 13c7749c4b

View File

@ -88,9 +88,12 @@ function loadFile(name: string, firstCluster: number, size: number) {
</ul> </ul>
<ul class="files"> <ul class="files">
<li v-for="(file, index) in files" :key="index"> <li v-for="(file, index) in files" :key="index">
<a href="" @click.prevent="loadFile(file.name, file.firstCuster, file.size)">{{ <a
file.name :class="{ current: file.name === currentFileName }"
}}</a> href=""
@click.prevent="loadFile(file.name, file.firstCuster, file.size)"
>{{ file.name }}</a
>
</li> </li>
</ul> </ul>
</div> </div>
@ -121,8 +124,10 @@ div.file-list {
} }
.directories a { .directories a {
color: cornflowerblue; color: #4080ff;
text-decoration: none; text-decoration: none;
padding: 0 0.5em;
display: block;
} }
.directories a:hover { .directories a:hover {
@ -130,12 +135,20 @@ div.file-list {
} }
.files a { .files a {
color: white; color: #e0e0e0;
text-decoration: none; text-decoration: none;
display: block;
padding: 0 0.5em;
}
.files a.current,
.files a.current:hover {
background: #4080ff80;
} }
.files a:hover { .files a:hover {
text-decoration: underline; text-decoration: underline;
background: #4080ff40;
} }
ul { ul {