Commit 7d6a27e2 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'astoicescu/truncate-dashboards-dropdown-items' into 'master'

Wrap dashboards dropdown items text

See merge request gitlab-org/gitlab!40367
parents 01fe6eb8 3dfd8fd5
...@@ -95,12 +95,10 @@ export default { ...@@ -95,12 +95,10 @@ export default {
@click="selectDashboard(dashboard)" @click="selectDashboard(dashboard)"
> >
<div class="gl-display-flex"> <div class="gl-display-flex">
<div class="gl-flex-grow-1 gl-min-w-0"> <span class="gl-flex-grow-1 gl-min-w-0 gl-overflow-hidden gl-overflow-wrap-break">
<div class="gl-word-break-all"> {{ dashboardDisplayName(dashboard) }}
{{ dashboardDisplayName(dashboard) }} </span>
</div> <gl-icon class="text-muted gl-flex-shrink-0 gl-ml-3 gl-align-self-center" name="star" />
</div>
<gl-icon class="text-muted gl-flex-shrink-0" name="star" />
</div> </div>
</gl-new-dropdown-item> </gl-new-dropdown-item>
<gl-new-dropdown-divider <gl-new-dropdown-divider
...@@ -115,7 +113,9 @@ export default { ...@@ -115,7 +113,9 @@ export default {
:is-checked="dashboard.path === selectedDashboardPath" :is-checked="dashboard.path === selectedDashboardPath"
@click="selectDashboard(dashboard)" @click="selectDashboard(dashboard)"
> >
{{ dashboardDisplayName(dashboard) }} <span class="gl-overflow-hidden gl-overflow-wrap-break">
{{ dashboardDisplayName(dashboard) }}
</span>
</gl-new-dropdown-item> </gl-new-dropdown-item>
</div> </div>
......
---
title: Wrap dashboards dropdown items text
merge_request: 40367
author:
type: added
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