Commit a7b19e7a authored by Baodong's avatar Baodong

Add bubble tips to files that are too long

File or folder cannot show full name with a bubble in the repository when it is very long.

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63039
parent 4df0f319
...@@ -186,6 +186,8 @@ export default { ...@@ -186,6 +186,8 @@ export default {
:is="linkComponent" :is="linkComponent"
ref="link" ref="link"
v-gl-hover-load="handlePreload" v-gl-hover-load="handlePreload"
v-gl-tooltip:tooltip-container
:title="fullPath"
:to="routerLinkTo" :to="routerLinkTo"
:href="url" :href="url"
:class="{ :class="{
......
...@@ -11,6 +11,7 @@ exports[`Repository table row component renders a symlink table row 1`] = ` ...@@ -11,6 +11,7 @@ exports[`Repository table row component renders a symlink table row 1`] = `
class="tree-item-link str-truncated" class="tree-item-link str-truncated"
data-qa-selector="file_name_link" data-qa-selector="file_name_link"
href="https://test.com" href="https://test.com"
title="test"
> >
<file-icon-stub <file-icon-stub
class="mr-1 position-relative text-secondary" class="mr-1 position-relative text-secondary"
...@@ -64,6 +65,7 @@ exports[`Repository table row component renders table row 1`] = ` ...@@ -64,6 +65,7 @@ exports[`Repository table row component renders table row 1`] = `
class="tree-item-link str-truncated" class="tree-item-link str-truncated"
data-qa-selector="file_name_link" data-qa-selector="file_name_link"
href="https://test.com" href="https://test.com"
title="test"
> >
<file-icon-stub <file-icon-stub
class="mr-1 position-relative text-secondary" class="mr-1 position-relative text-secondary"
...@@ -117,6 +119,7 @@ exports[`Repository table row component renders table row for path with special ...@@ -117,6 +119,7 @@ exports[`Repository table row component renders table row for path with special
class="tree-item-link str-truncated" class="tree-item-link str-truncated"
data-qa-selector="file_name_link" data-qa-selector="file_name_link"
href="https://test.com" href="https://test.com"
title="test"
> >
<file-icon-stub <file-icon-stub
class="mr-1 position-relative text-secondary" class="mr-1 position-relative text-secondary"
......
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