Skip to content

Commit

Permalink
tweak account items word breaking and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiry committed Jul 13, 2018
1 parent 2228734 commit 5093cda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/web/src/app/+accounts/account-title.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
:host {
display: block;
position: relative;
word-break: break-all;
padding-right: 15px;

.account-value-login {
display: inline;
Expand All @@ -22,5 +24,6 @@
position: absolute;
top: 0;
right: 0;
opacity: 0.65;
}
}
9 changes: 7 additions & 2 deletions src/web/src/app/+accounts/accounts.component.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@import "~src/web/src/variables";

$accounts-column-width: 250px;
$account-item-padding-y: $list-group-item-padding-y * 0.65;
$account-item-padding-x: $list-group-item-padding-x * 0.65;
$webview-border: darken($app-color-bg-dark, 10%);

:host {
Expand Down Expand Up @@ -47,7 +49,7 @@ $webview-border: darken($app-color-bg-dark, 10%);

.list-group-item {
word-wrap: break-word;
padding: ($list-group-item-padding-y * 0.65) ($list-group-item-padding-x * 0.65);
padding: $account-item-padding-y $account-item-padding-x;
}
}

Expand All @@ -73,12 +75,15 @@ $webview-border: darken($app-color-bg-dark, 10%);
width: 100%;
border-top-left-radius: $btn-border-radius;
border-bottom-left-radius: $btn-border-radius;
white-space: normal;
}

.dropdown-menu {
margin-top: $app-spacer-2;
width: 100%;

.dropdown-item {
padding: $account-item-padding-y $account-item-padding-x;
}
}
}

Expand Down

0 comments on commit 5093cda

Please sign in to comment.