Skip to content

Commit

Permalink
Fix css issue for chart label filter (#15891)
Browse files Browse the repository at this point in the history
Signed-off-by: AllForNothing <[email protected]>
  • Loading branch information
AllForNothing authored Oct 29, 2021
1 parent ec1c8c9 commit fed8406
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div>
<div class="form-group filter-div">
<input #filterInput type="text" placeholder='{{"LABEL.FILTER_LABEL_PLACEHOLDER" | translate }}'
<input #filterInput class="clr-input" type="text" placeholder='{{"LABEL.FILTER_LABEL_PLACEHOLDER" | translate }}'
[(ngModel)]="labelFilter">
</div>
<div class="label-items-container">
Expand All @@ -18,4 +18,4 @@
</div>
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@
margin-bottom: 24px;
}

.info-tips-icon {
color: grey;
}

.info-tips-icon:hover {
color: #007CBB;
cursor: pointer;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h3 class="modal-title">
<div class="form-group robot-token">
<label class="form-group-label-override">{{'ROBOT_ACCOUNT.TOKEN' |
translate}}</label>
<hbr-copy-input (onCopySuccess)="onCpSuccess($event)"
<hbr-copy-input #copyInputComponent (onCopySuccess)="onCpSuccess($event)"
inputSize="50" headerTitle=""
defaultValue="{{robot?.secret}}" class="copy-input"></hbr-copy-input>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DomSanitizer, SafeUrl } from "@angular/platform-browser";
import { TranslateService } from "@ngx-translate/core";
import { InlineAlertComponent } from "../inline-alert/inline-alert.component";
import { errorHandler } from "../../units/shared.utils";
import { CopyInputComponent } from "../push-image/copy-input.component";

@Component({
selector: 'view-token',
Expand All @@ -28,6 +29,8 @@ export class ViewTokenComponent implements OnInit {
@ViewChild(InlineAlertComponent)
inlineAlertComponent: InlineAlertComponent;
@ViewChild('secretForm', { static: true }) secretForm: NgForm;
@ViewChild('copyInputComponent')
copyInputComponent: CopyInputComponent;
@Output()
refreshSuccess: EventEmitter<boolean> = new EventEmitter<boolean>();
copyToken: boolean = false;
Expand Down Expand Up @@ -111,6 +114,9 @@ export class ViewTokenComponent implements OnInit {
onCpSuccess($event: any): void {
this.copyToken = false;
this.tokenModalOpened = false;
if (this.copyInputComponent) {
this.copyInputComponent.reset();
}
this.translate
.get("ROBOT_ACCOUNT.COPY_SUCCESS", { param: this.robot.name })
.subscribe((res: string) => {
Expand Down
9 changes: 9 additions & 0 deletions src/portal/src/css/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,12 @@ input:-webkit-autofill {
-webkit-text-fill-color: $input-autofill-color !important;
caret-color: $input-autofill-color
}

hbr-copy-input {
.info-tips-icon {
color: $pull-command-icon-color;
}
.info-tips-icon:hover {
color: $pull-command-icon-hover-color;
}
}
2 changes: 2 additions & 0 deletions src/portal/src/css/dark-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ $back-link-color: #4aaed9!important;
$radio-button-checked: #4aaed9;
$input-autofill-bg-color: #1b2a32;
$input-autofill-color: #eaedf0;
$pull-command-icon-color: #4aaed9;
$pull-command-icon-hover-color: #007CBB;
@import "./common.scss";
2 changes: 2 additions & 0 deletions src/portal/src/css/light-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ $back-link-color: none;
$radio-button-checked: #0072a3;
$input-autofill-bg-color: #fafafa;
$input-autofill-color: #000;
$pull-command-icon-color: #007CBB;
$pull-command-icon-hover-color: #4aaed9;
@import "./common.scss";
2 changes: 1 addition & 1 deletion src/portal/src/i18n/lang/en-us-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
"ROBOT_ACCOUNT": {
"NAME": "Name",
"PERMISSIONS": "Permissions",
"TOKEN": "Token",
"TOKEN": "Secret",
"NEW_ROBOT_ACCOUNT": "NEW ROBOT ACCOUNT",
"ENABLED_STATE": "Enabled state",
"NUMBER_REQUIRED": "Field is required and should be an integer other than 0.",
Expand Down
2 changes: 1 addition & 1 deletion src/portal/src/i18n/lang/es-es-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
"ROBOT_ACCOUNT": {
"NAME": "Name",
"PERMISSIONS": "Permissions",
"TOKEN": "Token",
"TOKEN": "Secret",
"NEW_ROBOT_ACCOUNT": "NEW ROBOT ACCOUNT",
"ENABLED_STATE": "Enabled state",
"CREATETION": "Created time",
Expand Down
2 changes: 1 addition & 1 deletion src/portal/src/i18n/lang/zh-cn-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -1702,6 +1702,6 @@
"STOP": "停止",
"LIST": "查询",
"REPOSITORY": "仓库",
"HELM_LABEL": "Helm Chart label"
"HELM_LABEL": "Helm Chart 标签"
}
}

0 comments on commit fed8406

Please sign in to comment.