Skip to content

Commit 6077104

Browse files
committed
fix access token text box
Signed-off-by: Matt Wrock <matt@mattwrock.com>
1 parent 943f248 commit 6077104

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

components/builder-web/app/profile/profile/_profile.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
color: $hab-text;
1414
background-color: #f0f5f8;
1515
font-weight: 600;
16+
min-width: 0;
1617

1718
@include tablet-up {
1819
margin-bottom: 0;

components/builder-web/app/profile/profile/profile.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h3>Personal Access Token</h3>
6161
</ng-container>
6262
<ng-container *ngIf="newAccessToken">
6363
<div class="controls">
64-
<hab-copyable style="input" [text]="newAccessToken.token"></hab-copyable>
64+
<hab-copyable variant="input" [text]="newAccessToken.token"></hab-copyable>
6565
<div class="actions">
6666
<a class="generate" (click)="generateToken(true)">{{ buttonLabel }}</a>
6767
<a class="delete" (click)="deleteToken(newAccessToken.id)" *ngIf="!deletingAccessToken">Delete</a>

components/builder-web/app/shared/copyable/copyable.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="copyable-component" [ngClass]="style">
1+
<div class="copyable-component" [ngClass]="variant">
22
<span>{{ text }}</span>
33
<button (click)="copy($event)" [class.copied]="copied" [matTooltip]="title" matTooltipPosition="above">
44
<hab-icon [symbol]="symbol"></hab-icon>

components/builder-web/app/shared/copyable/copyable.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { MatTooltip } from '@angular/material/tooltip';
2323
export class CopyableComponent {
2424

2525
@Input() text: string = '';
26-
@Input() style: string = 'unstyled';
26+
@Input() variant: string = 'unstyled';
2727

2828
public copied: boolean = false;
2929

0 commit comments

Comments
 (0)