Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

The Org Name/Agent Name needed alignment #640

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
<v-img src="@/assets/logo_default.svg"></v-img>
</v-list-item-avatar>
<v-list-item-content v-if="ux.navigation.avatar.agent.default">
<v-list-item-title class="text-wrap">{{
getOrganizationName ? getOrganizationName : getAgentName
}}</v-list-item-title>
<v-list-item-title class="text-wrap nav-display-name">{{ getNavDisplayName }}</v-list-item-title>
<!-- <v-list-item-subtitle></v-list-item-subtitle> -->
</v-list-item-content>
<v-list-item-content v-if="!ux.navigation.avatar.agent.default">
Expand All @@ -35,9 +33,7 @@
:src="ux.navigation.avatar.agent.src"
></v-img
></v-list-item-title>
<v-list-item-subtitle class="text-wrap">{{
getOrganizationName ? getOrganizationName : getAgentName
}}</v-list-item-subtitle>
<v-list-item-subtitle class="text-wrap nav-display-name">{{ getNavDisplayName }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
<v-list-item
Expand All @@ -48,8 +44,8 @@
<v-list-item-avatar style="width: fit-content">
<v-icon>$vuetify.icons.domain</v-icon>
</v-list-item-avatar>
<v-list-item-content class="text-wrap"
>{{ getOrganizationName ? getOrganizationName : getAgentName }}
<v-list-item-content class="text-wrap nav-display-name"
>{{ getNavDisplayName }}
</v-list-item-content>
</v-list-item>
</router-link>
Expand Down Expand Up @@ -444,6 +440,10 @@ export default {
}
return "";
},
getNavDisplayName() {
const result = this.getOrganizationName;
return result ? result : this.getAgentName;
},
getTitle() {
if (this.ux.header.title.prefix) {
let pageTitle =
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ nav {
text-decoration: none;
}
}

.nav-display-name {
text-align: center;
}
}

.v-data-table-header th.sortable {
Expand Down