Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

fix(account-sidebar): fix account long name are above the other label… #1506

Merged
merged 5 commits into from
Dec 27, 2018

Conversation

HeyRoach
Copy link
Contributor

…s in account sidebar

@coveralls
Copy link

coveralls commented Dec 27, 2018

Pull Request Test Coverage Report for Build 1517

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 53.798%

Totals Coverage Status
Change from base Build 1507: 0.0%
Covered Lines: 8861
Relevant Lines: 14552

💛 - Coveralls

@wowshakhov
Copy link
Collaborator

Add ellipsis:
selection_022

@@ -12,26 +10,22 @@
>
<mat-expansion-panel-header>
<mat-panel-title>
{{ user.firstname }} {{ user.lastname }}
<div class="mat-tab-tooltip" [matTooltip]="user.firstname + user.lastname">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"+" concatenates strings without a space. It looks bad:

image

</mat-panel-title>
<mat-panel-description>
</mat-panel-description>
<mat-panel-description> </mat-panel-description>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove mat-panel-description if it's not useful.

@@ -12,26 +10,22 @@
>
<mat-expansion-panel-header>
<mat-panel-title>
{{ user.firstname }} {{ user.lastname }}
<div class="mat-tab-tooltip" [matTooltip]="user.firstname + user.lastname">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the mat-tab-tooltip class in the first place?

@wowshakhov wowshakhov assigned HeyRoach and unassigned wowshakhov Dec 27, 2018
@@ -0,0 +1,11 @@
.mat-expansion-panel-header {
max-width: 100%;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like it doesn't do anything

overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 95%;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is max-width: 95%; necessary?

max-width: 100%;
}

.entity-card-title {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can replace entity-card-title with truncate from app.scss

@HeyRoach HeyRoach merged commit 2ee3a65 into bwsw:master Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants