Skip to content

Commit

Permalink
fix(dh): adjustments to user roles tab (#3641)
Browse files Browse the repository at this point in the history
* fix(dh): remove copy button from expandable card

* fix(dh): do not wrap text in badge
  • Loading branch information
dzhavat authored Oct 16, 2024
1 parent b9d4ca4 commit 3c8e2f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@
<watt-expandable-card-title>
{{ title }}

<watt-icon
name="contentCopy"
[wattCopyToClipboard]="title"
(click)="$event.stopPropagation()"
/>

@if (actor.id === user()?.administratedBy?.id) {
<watt-icon
name="personCheck"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ dh-user-roles {
}

watt-expandable-card {
watt-badge {
flex: 0 0 auto;
}

watt-expandable-card-title {
display: flex;
gap: var(--watt-space-s);

watt-icon {
color: var(--watt-color-primary-darker);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import { WattTableColumnDef, WATT_TABLE } from '@energinet-datahub/watt/table';
import { WATT_EXPANDABLE_CARD_COMPONENTS } from '@energinet-datahub/watt/expandable-card';
import { WattIconComponent } from '@energinet-datahub/watt/icon';
import { WattTooltipDirective } from '@energinet-datahub/watt/tooltip';
import { WattCopyToClipboardDirective } from '@energinet-datahub/watt/clipboard';

import {
DhActorUserRole,
Expand All @@ -61,7 +60,6 @@ import {
MatExpansionModule,
FormsModule,

WattCopyToClipboardDirective,
WattSpinnerComponent,
WATT_TABLE,
WattIconComponent,
Expand Down

0 comments on commit 3c8e2f0

Please sign in to comment.