Skip to content

Commit 0fe0441

Browse files
marie-jantleblanc
authored andcommitted
fix(pci.projects.sidebar): improve clipboard display (#803)
Prevent icon from moving to the right on hover and prevent tooltip from being cut off ref: MSB-91
1 parent a8a7705 commit 0fe0441

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

packages/manager/apps/public-cloud/src/assets/theme/_sidebar.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ cloud-sidebar { /* stylelint-disable-line */
3737
padding: 0;
3838
min-width: auto;
3939
color: @primary-color;
40+
41+
&:hover {
42+
min-width: auto;
43+
}
44+
}
45+
46+
.oui-tooltip {
47+
bottom: 0;
48+
margin: 0;
4049
}
4150
}
4251

@@ -69,6 +78,10 @@ cloud-sidebar { /* stylelint-disable-line */
6978
.oui-clipboard__control,
7079
.oui-clipboard__button {
7180
color: #fff;
81+
82+
.oui-icon {
83+
color: @light-color;
84+
}
7285
}
7386
}
7487

packages/manager/modules/pci/src/projects/project/sidebar/sidebar.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
<oui-skeleton class="mt-2" size="s"></oui-skeleton>
66
</div>
77
<div class="d-flex" data-ng-if="!$ctrl.isLoading && $ctrl.project">
8-
<div class="w-100 text-truncate mr-3">
8+
<div class="w-100 mr-3">
9+
<div class="w-100 text-truncate">
910
<h2 class="mb-0 d-inline-block" style="font-weight: 400;" data-ng-bind="$ctrl.project.description"></h2>
11+
</div>
1012
<oui-clipboard model="$ctrl.project.project_id"></oui-clipboard>
1113
</div>
1214
<div class="my-auto">
@@ -64,8 +66,10 @@ <h2 class="mb-0 d-inline-block" style="font-weight: 400;" data-ng-bind="$ctrl.pr
6466
<span class="sr-only" data-translate="cloud_sidebar_public_cloud_project_toggle_close"></span>
6567
</button>
6668
</div>
67-
<div class="w-100 text-truncate ml-3">
69+
<div class="w-100 ml-3">
70+
<div class="w-100 text-truncate">
6871
<h2 class="mb-0 d-inline-block text-white" style="font-weight: 400;" data-ng-bind="$ctrl.project.description"></h2>
72+
</div>
6973
<oui-clipboard model="$ctrl.project.project_id"></oui-clipboard>
7074
</div>
7175
</div>

0 commit comments

Comments
 (0)