-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kamu UI 434 ux resizable query input (#441)
- Loading branch information
1 parent
2883332
commit 13a1719
Showing
8 changed files
with
129 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...flow/dataset-flow-details/tabs/flow-details-logs-tab/flow-details-logs-tab.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<span *ngIf="!isAdmin">Logs tab coming soon</span> | ||
<ng-container *ngIf="isAdmin && grafanaTaskDetailsURL"> | ||
<p class="position-relative my-4 box p-4" data-test-id="grafana-logs-section"> | ||
You can <a [href]="grafanaTaskLogsUrl(this.grafanaTaskDetailsURL)">see logs in Grafana</a> | ||
You can <a [href]="grafanaTaskLogsUrl(this.grafanaTaskDetailsURL)" target="_blank">see logs in Grafana</a> | ||
<mat-icon class="admin-view text-muted"> admin_panel_settings</mat-icon> | ||
</p> | ||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 10 additions & 7 deletions
17
src/app/shared/editor/components/sql-editor/sql-editor.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<ngx-monaco-editor | ||
[ngStyle]="{ height: height, width: width }" | ||
(onInit)="onInitEditor($event)" | ||
[options]="EDITOR_OPTIONS" | ||
[(ngModel)]="template" | ||
(ngModelChange)="modelChange()" | ||
/> | ||
<div class="resizable pt-4"> | ||
<ngx-monaco-editor | ||
[ngStyle]="{ height: height, width: width }" | ||
(onInit)="onInitEditor($event)" | ||
[options]="EDITOR_OPTIONS" | ||
[(ngModel)]="template" | ||
(ngModelChange)="modelChange()" | ||
/> | ||
<div class="cell-border-bottom"></div> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
src/app/shared/editor/components/sql-editor/sql-editor.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@import "var"; | ||
|
||
.resizable { | ||
position: relative; | ||
border-radius: 3px; | ||
border: 1px solid $app-color-border-default; | ||
} | ||
|
||
.cell-border-bottom { | ||
content: ""; | ||
position: absolute; | ||
bottom: 0; | ||
cursor: s-resize; | ||
height: 9px; | ||
width: 100%; | ||
border-top: 1px solid #f1f1f1; | ||
overflow: hidden; | ||
background-color: #eff0f1; | ||
background-image: url("https://cdn.sstatic.net/Sites/stackoverflow/img/sprites.svg"), none; | ||
background-position: calc(100% / 2) -364px; | ||
background-size: initial; | ||
background-repeat: no-repeat; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters