|
1 | | -.application-set-details-page { |
2 | | - &__yaml-editor { |
3 | | - background: #1a1d21; |
4 | | - border: 1px solid #393F44; |
5 | | - border-radius: 8px; |
6 | | - overflow: hidden; |
| 1 | +.yaml-tab-container { |
| 2 | + // Use viewport height to fit the page without scrolling - adjust for header, tabs, and footer |
| 3 | + height: calc(97vh - 320px); // Slightly reduced to make footer fully visible |
| 4 | + display: flex; |
| 5 | + flex-direction: column; |
| 6 | + overflow: hidden; // Prevent page scrolling for YAML tab only |
| 7 | + |
| 8 | + // Override parent scrolling behavior for YAML tab |
| 9 | + .application-set-details-page__pane-body { |
| 10 | + overflow: hidden !important; // Override parent scrolling for YAML tab |
| 11 | + } |
| 12 | + |
| 13 | + .pf-v6-c-code-editor:focus-within, |
| 14 | + .pf-c-code-editor:focus-within { |
| 15 | + box-shadow: none !important; |
| 16 | + outline: none !important; |
7 | 17 | } |
8 | 18 |
|
9 | | - &__yaml-editor-header { |
10 | | - display: flex; |
11 | | - justify-content: space-between; |
12 | | - align-items: center; |
13 | | - padding: 12px 16px; |
14 | | - background: #212427; |
15 | | - border-bottom: 1px solid #393F44; |
| 19 | + .monaco-editor .scrollbar .slider { |
| 20 | + border: 0 !important; |
16 | 21 | } |
17 | 22 |
|
18 | | - &__yaml-editor-header-buttons { |
19 | | - display: flex; |
20 | | - gap: 8px; |
| 23 | + .monaco-editor .scrollbar .slider:hover { |
| 24 | + border: 0 !important; |
21 | 25 | } |
22 | 26 |
|
23 | | - &__yaml-editor-header-shortcuts { |
24 | | - font-size: 12px; |
| 27 | + .monaco-editor .scrollbar.vertical { |
| 28 | + border-left: 0 !important; |
25 | 29 | } |
26 | 30 |
|
27 | | - &__yaml-editor-header-shortcuts-link { |
28 | | - color: #0066cc; |
29 | | - text-decoration: none; |
| 31 | + .monaco-editor .scrollbar.horizontal { |
| 32 | + border-top: 0 !important; |
| 33 | + } |
| 34 | + |
| 35 | + .monaco-editor .margin-view-overlays { |
| 36 | + border: 0 !important; |
| 37 | + } |
30 | 38 |
|
31 | | - &:hover { |
32 | | - text-decoration: underline; |
33 | | - } |
| 39 | + .monaco-editor .glyph-margin { |
| 40 | + border: 0 !important; |
34 | 41 | } |
35 | 42 |
|
36 | | - &__yaml-editor-content { |
37 | | - padding: 16px; |
38 | | - max-height: 600px; |
39 | | - overflow-y: auto; |
| 43 | + .monaco-editor .monaco-editor-background:focus { |
| 44 | + outline: none !important; |
| 45 | + border: 0 !important; |
| 46 | + } |
| 47 | + |
| 48 | + .monaco-editor .scrollbar .corner:hover { |
| 49 | + background: transparent !important; |
| 50 | + border: 0 !important; |
| 51 | + } |
| 52 | + |
| 53 | + .monaco-editor .scrollbar .slider.active:hover { |
| 54 | + border: 0 !important; |
| 55 | + } |
40 | 56 |
|
41 | | - pre { |
42 | | - margin: 0; |
43 | | - color: #ffffff; |
44 | | - font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; |
45 | | - font-size: 12px; |
46 | | - line-height: 1.5; |
47 | | - white-space: pre-wrap; |
48 | | - word-break: break-word; |
49 | | - } |
| 57 | + .monaco-editor .scrollbar .slider::before, |
| 58 | + .monaco-editor .scrollbar .slider::after { |
| 59 | + display: none !important; |
50 | 60 | } |
51 | 61 | } |
0 commit comments