@@ -58,9 +58,10 @@ export class DevtoolsBrowser extends Element {
5858 width: 100%;
5959 height: 100%;
6060 display: flex;
61- padding: 2rem;
61+ padding: 2rem !important ;
6262 align-items: center;
6363 justify-content: center;
64+ box-sizing: border-box !important;
6465 }
6566
6667 section {
@@ -70,6 +71,9 @@ export class DevtoolsBrowser extends Element {
7071 display: flex;
7172 flex-direction: column;
7273 overflow: hidden;
74+ background: var(--vscode-sideBar-background);
75+ padding: 0.5rem;
76+ gap: 0;
7377 }
7478
7579 .frame-dot {
@@ -79,6 +83,35 @@ export class DevtoolsBrowser extends Element {
7983 margin: 1em 0.25em;
8084 flex-shrink: 0;
8185 }
86+
87+ .frame-dot:nth-child(1) {
88+ background-color: var(
89+ --vscode-notificationsErrorIcon-foreground,
90+ #e51400
91+ );
92+ }
93+
94+ .frame-dot:nth-child(2) {
95+ background-color: var(
96+ --vscode-notificationsWarningIcon-foreground,
97+ #bf8803
98+ );
99+ }
100+
101+ .frame-dot:nth-child(3) {
102+ background-color: var(
103+ --vscode-ports-iconRunningProcessForeground,
104+ #369432
105+ );
106+ }
107+
108+ iframe {
109+ background-color: white;
110+ flex: 1;
111+ border: none;
112+ border-radius: 0 0 0.5rem 0.5rem;
113+ min-height: 0;
114+ }
82115 `
83116 ]
84117
@@ -367,21 +400,25 @@ export class DevtoolsBrowser extends Element {
367400
368401 return html `
369402 < section
370- class ="w-full h-full bg-sideBarBackground rounded-t-md shadow-md "
403+ class ="w-full h-full bg-sideBarBackground rounded-lg border-2 border-panelBorder shadow-xl "
371404 >
372- < header class ="flex block mx-2 ">
405+ < header
406+ class ="flex items-center mx-2 bg-sideBarBackground rounded-t-lg "
407+ >
373408 < div class ="frame-dot bg-notificationsErrorIconForeground "> </ div >
374409 < div class ="frame-dot bg-notificationsWarningIconForeground "> </ div >
375410 < div class ="frame-dot bg-portsIconRunningProcessForeground "> </ div >
376411 < div
377- class ="flex mx-4 my-2 pr-2 bg-inputBackground text-inputForeground border border-transparent rounded leading-7 w-full "
412+ class ="flex items-center mx-4 my-2 pr-2 bg-input-background text-inputForeground border border-editorSuggestWidgetBorder rounded leading-7 flex-1 min-w-0 overflow-hidden "
378413 >
379- < icon-mdi-world class ="w-[20px] h-[20px] m-1 mr-2 "> </ icon-mdi-world >
380- ${ this . #activeUrl}
414+ < icon-mdi-world
415+ class ="w-[20px] h-[20px] m-1 mr-2 flex-shrink-0 "
416+ > </ icon-mdi-world >
417+ < span class ="truncate "> ${ this . #activeUrl} </ span >
381418 </ div >
382419 </ header >
383420 ${ this . mutations && this . mutations . length
384- ? html `< iframe class ="origin-top-left h-full w-full "> </ iframe > `
421+ ? html `< iframe class ="origin-top-left "> </ iframe > `
385422 : html `< wdio-devtools-placeholder
386423 style ="height: 100% "
387424 > </ wdio-devtools-placeholder > ` }
0 commit comments