|
56 | 56 |
|
57 | 57 | {#if status === "CE"} |
58 | 58 | <div class="toolbar" class:toolbar--hidden={skipped}> |
59 | | - <div class="testcase-badges"> |
| 59 | + <div class="toolbar-badges"> |
60 | 60 | <div class="toolbar-badge-container toolbar-badge" data-status={status}> |
61 | 61 | <div class="toolbar-icon toolbar-icon-exclude-highlight"> |
62 | 62 | <div class="codicon codicon-bolded codicon-terminal-bash"></div> |
|
72 | 72 | {/if} |
73 | 73 | </div> |
74 | 74 | <div class="testcase-buttons"> |
75 | | - <button |
76 | | - class="toolbar-icon" |
77 | | - data-tooltip="Run Testcase" |
78 | | - aria-label="Run" |
79 | | - onclick={handleRun} |
80 | | - > |
| 75 | + <button class="toolbar-icon" data-tooltip="Run Testcase" aria-label="Run" onclick={handleRun}> |
81 | 76 | <div class="codicon codicon-run-below"></div> |
82 | 77 | </button> |
83 | 78 | <button |
|
96 | 91 | > |
97 | 92 | <div class="codicon codicon-trash"></div> |
98 | 93 | </button> |
99 | | - <button |
100 | | - class="toolbar-icon" |
101 | | - data-tooltip={showDetails ? "Hide Details" : "Show Details"} |
102 | | - aria-label={showDetails ? "Hide" : "Show"} |
103 | | - onclick={handleToggleVisibility} |
104 | | - > |
105 | | - <div class="codicon {showDetails ? 'codicon-eye-closed' : 'codicon-eye'}"></div> |
106 | | - </button> |
107 | 94 | <button |
108 | 95 | class="toolbar-icon toolbar-icon--visibility" |
109 | 96 | data-tooltip={skipped ? "Unskip Testcase" : "Skip Testcase"} |
|
118 | 105 | </div> |
119 | 106 | {:else if status === "NA" || status === "AC" || status === "WA" || status === "RE" || status === "TL" || status === "ML"} |
120 | 107 | <div class="toolbar" class:toolbar--hidden={skipped}> |
121 | | - <div class="testcase-badges"> |
| 108 | + <div class="toolbar-badges"> |
| 109 | + <div |
| 110 | + class="toolbar-badge-container toolbar-dropdown-container toolbar-badge" |
| 111 | + data-status={status} |
| 112 | + > |
| 113 | + <button |
| 114 | + class="toolbar-icon toolbar-icon-exclude-highlight" |
| 115 | + data-tooltip={showDetails ? "Hide Details" : "Show Details"} |
| 116 | + aria-label={showDetails ? "Hide" : "Show"} |
| 117 | + onclick={handleToggleVisibility} |
| 118 | + > |
| 119 | + <div |
| 120 | + class="codicon codicon-bolded {showDetails |
| 121 | + ? 'codicon-chevron-down' |
| 122 | + : 'codicon-chevron-right'}" |
| 123 | + ></div> |
| 124 | + </button> |
| 125 | + </div> |
122 | 126 | <div class="toolbar-badge-container toolbar-badge" data-status={status}> |
123 | 127 | <div class="toolbar-icon toolbar-icon-exclude-highlight"> |
124 | 128 | {#if status === "NA"} |
|
168 | 172 | {/if} |
169 | 173 | </div> |
170 | 174 | <div class="testcase-buttons"> |
171 | | - <button |
172 | | - class="toolbar-icon" |
173 | | - data-tooltip="Run Testcase" |
174 | | - aria-label="Run" |
175 | | - onclick={handleRun} |
176 | | - > |
| 175 | + <button class="toolbar-icon" data-tooltip="Run Testcase" aria-label="Run" onclick={handleRun}> |
177 | 176 | <div class="codicon codicon-run-below"></div> |
178 | 177 | </button> |
179 | 178 | <button |
|
192 | 191 | > |
193 | 192 | <div class="codicon codicon-trash"></div> |
194 | 193 | </button> |
195 | | - <button |
196 | | - class="toolbar-icon" |
197 | | - data-tooltip={showDetails ? "Hide Details" : "Show Details"} |
198 | | - aria-label={showDetails ? "Hide" : "Show"} |
199 | | - onclick={handleToggleVisibility} |
200 | | - > |
201 | | - <div class="codicon {showDetails ? 'codicon-eye-closed' : 'codicon-eye'}"></div> |
202 | | - </button> |
203 | 194 | <button |
204 | 195 | class="toolbar-icon toolbar-icon--visibility" |
205 | 196 | data-tooltip={skipped ? "Unskip Testcase" : "Skip Testcase"} |
|
266 | 257 | gap: 6px; |
267 | 258 | } |
268 | 259 |
|
269 | | - .toolbar--hidden > .testcase-badges { |
| 260 | + .toolbar--hidden > .toolbar-badges { |
270 | 261 | opacity: 0.5; |
271 | 262 | } |
272 | 263 |
|
|
282 | 273 | margin-right: auto; |
283 | 274 | } |
284 | 275 |
|
285 | | - .testcase-badges { |
| 276 | + .toolbar-badges { |
286 | 277 | display: flex; |
287 | 278 | align-items: center; |
288 | 279 | gap: 6px; |
|
317 | 308 | .toolbar-badge-container { |
318 | 309 | display: flex; |
319 | 310 | align-items: center; |
320 | | - padding: 1px 6px; |
| 311 | + padding: 0px 6px; |
321 | 312 | border-radius: 11px; |
322 | 313 | font-size: 15px; |
323 | 314 | font-weight: bold; |
|
326 | 317 | color: var(--vscode-badge-foreground); |
327 | 318 | } |
328 | 319 |
|
| 320 | + .toolbar-dropdown-container { |
| 321 | + padding: 0px; |
| 322 | + } |
| 323 | +
|
329 | 324 | .toolbar-badge-text { |
330 | 325 | margin: 0 3px 0 0; |
331 | 326 | } |
|
0 commit comments