Commit 4820a195 authored by Phil Hughes's avatar Phil Hughes

Merge branch '40286-hide-full-namespace-groups-tree' into 'master'

Show only group name by default and put full namespace in tooltip in Groups tree

Closes #40286

See merge request gitlab-org/gitlab-ce!15650
parents cadf378f d057b18e
<script> <script>
import tooltip from '../../vue_shared/directives/tooltip';
import identicon from '../../vue_shared/components/identicon.vue'; import identicon from '../../vue_shared/components/identicon.vue';
import eventHub from '../event_hub'; import eventHub from '../event_hub';
...@@ -8,6 +9,9 @@ import itemStats from './item_stats.vue'; ...@@ -8,6 +9,9 @@ import itemStats from './item_stats.vue';
import itemActions from './item_actions.vue'; import itemActions from './item_actions.vue';
export default { export default {
directives: {
tooltip,
},
components: { components: {
identicon, identicon,
itemCaret, itemCaret,
...@@ -112,10 +116,16 @@ export default { ...@@ -112,10 +116,16 @@ export default {
</a> </a>
</div> </div>
<div <div
class="title"> class="title namespace-title">
<a <a
v-tooltip
:href="group.relativePath" :href="group.relativePath"
class="no-expand">{{group.fullName}}</a> :title="group.fullName"
class="no-expand"
data-placement="top"
>
{{group.name}}
</a>
<span <span
v-if="group.permission" v-if="group.permission"
class="access-type" class="access-type"
......
...@@ -449,6 +449,12 @@ ul.indent-list { ...@@ -449,6 +449,12 @@ ul.indent-list {
} }
} }
.namespace-title {
.tooltip-inner {
max-width: 350px;
}
}
ul.group-list-tree { ul.group-list-tree {
li.group-row { li.group-row {
&.has-description { &.has-description {
......
---
title: Show only group name by default and put full namespace in tooltip in Groups
tree
merge_request: 15650
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment