Skip to content

Commit

Permalink
Display filename in context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
longern committed Oct 8, 2022
1 parent 4ced5e2 commit 376c90d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
justify-content: center;
}

.file-name {
.file-name,
.contextmenu-filename {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
Expand Down Expand Up @@ -147,6 +148,10 @@
border-radius: 8px;
}

.contextmenu-filename {
padding: 12px;
}

.contextmenu-list > li > * {
display: block;
width: 100%;
Expand Down Expand Up @@ -341,6 +346,11 @@
</div>
<div v-if="showMenu" class="contextmenu-mask" @click="showMenu = false">
<div class="contextmenu-container">
<div
v-text="focusedItem.key || focusedItem"
class="contextmenu-filename"
@click.stop.prevent
></div>
<ul v-if="typeof(focusedItem) === 'string'" class="contextmenu-list">
<li>
<button
Expand Down

0 comments on commit 376c90d

Please sign in to comment.