Fix overflow in editor edit component, add margin between review toggle and copy button
This commit is contained in:
@@ -25,7 +25,9 @@
|
|||||||
<mat-button-toggle value="diff">Diff</mat-button-toggle>
|
<mat-button-toggle value="diff">Diff</mat-button-toggle>
|
||||||
}
|
}
|
||||||
</mat-button-toggle-group>
|
</mat-button-toggle-group>
|
||||||
<button mat-flat-button (click)="copyToClipboard()">Copy</button>
|
<button mat-flat-button class="copy-button" (click)="copyToClipboard()">
|
||||||
|
Copy
|
||||||
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@switch (previewType()) { @case ('raw') {
|
@switch (previewType()) { @case ('raw') {
|
||||||
|
|||||||
@@ -11,6 +11,15 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
.editor-items {
|
.editor-items {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
@@ -28,3 +37,7 @@ ngx-monaco-editor,
|
|||||||
ngx-monaco-diff-editor {
|
ngx-monaco-diff-editor {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.copy-button {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user