Add icons in tab bar

This commit is contained in:
JannisX11 2023-11-26 19:00:05 +01:00
parent 8a43a16f6b
commit ba67cd1bc5
2 changed files with 4 additions and 0 deletions

View File

@ -680,6 +680,9 @@
#tab_bar .project_tab.move_forth {
left: var(--tabwidth);
}
#tab_bar .project_tab > .icon {
pointer-events: none;
}
#tab_bar .project_tab > label {
overflow: hidden;
width: calc(100% - 20px);

View File

@ -255,6 +255,7 @@
@mouseenter="mouseEnter(project, $event)"
@mouseleave="mouseLeave(project, $event)"
>
<dynamic-icon :icon="project.format ? project.format.icon : 'home'"></dynamic-icon>
<label class="project_tab_session_badge" v-if="project.EditSession"><i class="material-icons">group</i>{{ project.EditSession.client_count }}</label>
<label>{{ project.getDisplayName() }}</label>
<div class="project_tab_close_button" :class="{unsaved: !project.saved}" :title="close_tab_label" @click="project.close()">