Skip to content

Commit cdf828b

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[Recorder] Fix double scroll bars
Other changes include: Making the toolbar wrapping this remove the scrollbar all together, mimics the other panels. Fix the Replay Setting getting out of view. And another regression related to when there are a more steps the step view was not scrollable. Fixed: 404154247 Change-Id: I211dd0a2993ab9a0a3e2487b7082869a1171d939 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6357021 Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]>
1 parent cd0ccbb commit cdf828b

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

front_end/panels/recorder/RecorderController.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,9 +1369,7 @@ export class RecorderController extends LitElement {
13691369
.showSelectedItem=${false}
13701370
.open=${this.exportMenuExpanded}
13711371
>
1372-
<devtools-menu-group .name=${i18nString(
1373-
UIStrings.export,
1374-
)}>
1372+
<devtools-menu-group .name=${i18nString(UIStrings.export)}>
13751373
${Lit.Directives.repeat(
13761374
this.#builtInConverters,
13771375
converter => {
@@ -1385,9 +1383,7 @@ export class RecorderController extends LitElement {
13851383
},
13861384
)}
13871385
</devtools-menu-group>
1388-
<devtools-menu-group .name=${i18nString(
1389-
UIStrings.exportViaExtensions,
1390-
)}>
1386+
<devtools-menu-group .name=${i18nString(UIStrings.exportViaExtensions)}>
13911387
${Lit.Directives.repeat(
13921388
this.extensionConverters,
13931389
converter => {

front_end/panels/recorder/RecorderPanel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export class RecorderPanel extends UI.Panel.Panel {
2020
this.element.setAttribute('jslog', `${VisualLogging.panel('chrome-recorder').track({resize: true})}`);
2121
this.#controller = new RecorderController();
2222
this.contentElement.append(this.#controller);
23-
this.contentElement.style.minWidth = '400px';
2423
}
2524

2625
static instance(

front_end/panels/recorder/components/recordingView.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
background-color: var(--sys-color-cdt-base-container);
3333
z-index: 0;
3434
position: relative;
35-
container: sections / inline-size; /* stylelint-disable-line property-no-unknown */
35+
/* stylelint-disable-next-line property-no-unknown */
36+
container: sections / inline-size;
3637
}
3738

3839
.section {
@@ -64,7 +65,8 @@
6465
.screenshot-wrapper {
6566
flex: 0 0 80px;
6667
padding-top: 32px;
67-
z-index: 2; /* We want this to be on top of `.step-overlay` */
68+
/* We want this to be on top of `.step-overlay` */
69+
z-index: 2;
6870
}
6971

7072
/* stylelint-disable-next-line at-rule-no-unknown */
@@ -231,6 +233,7 @@
231233
.settings {
232234
margin-top: 4px;
233235
display: flex;
236+
flex-wrap: wrap;
234237
font-size: 12px;
235238
line-height: 20px;
236239
letter-spacing: 0.03em;
@@ -339,7 +342,7 @@ devtools-split-view {
339342
}
340343

341344
[slot="main"] {
342-
overflow: hidden;
345+
overflow: hidden auto;
343346
}
344347

345348
[slot="sidebar"] {

front_end/panels/recorder/recorderController.css

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ devtools-create-recording-view {
3838
.header {
3939
background-color: var(--sys-color-cdt-base-container);
4040
display: flex;
41-
flex-direction: row;
41+
flex-flow: row wrap;
4242
align-items: center;
4343
border-bottom: 1px solid var(--sys-color-divider);
4444
padding: 0 5px;
45-
min-height: 29px;
46-
max-height: 29px;
4745
gap: 3px;
4846
}
4947

@@ -60,7 +58,7 @@ select {
6058
border: none;
6159
border-radius: var(--sys-shape-corner-extra-small);
6260
height: var(--sys-size-9);
63-
max-width: 180px;
61+
max-width: 140px;
6462
min-width: 140px;
6563
padding: 0 var(--sys-size-6) 0 var(--sys-size-5);
6664
position: relative;
@@ -80,12 +78,15 @@ select {
8078
}
8179

8280
&:hover:active {
83-
/* stylelint-disable plugin/use_theme_colors */
84-
background:
85-
var(--combobox-dropdown-arrow),
86-
linear-gradient(var(--sys-color-state-hover-on-subtle), var(--sys-color-state-hover-on-subtle)),
87-
linear-gradient(var(--sys-color-state-ripple-neutral-on-subtle), var(--sys-color-state-ripple-neutral-on-subtle));
88-
/* stylelint-enable plugin/use_theme_colors */
81+
background: var(--combobox-dropdown-arrow),
82+
linear-gradient(
83+
var(--sys-color-state-hover-on-subtle),
84+
var(--sys-color-state-hover-on-subtle)
85+
),
86+
linear-gradient(
87+
var(--sys-color-state-ripple-neutral-on-subtle),
88+
var(--sys-color-state-ripple-neutral-on-subtle)
89+
);
8990
background-position: right center;
9091
background-repeat: no-repeat;
9192
}
@@ -166,7 +167,8 @@ devtools-recording-list-view {
166167
font: var(--sys-typescale-body4-regular);
167168
color: var(--sys-color-on-surface-subtle);
168169

169-
> x-link { /* stylelint-disable-line selector-type-no-unknown */
170+
/* stylelint-disable-next-line selector-type-no-unknown */
171+
> x-link {
170172
white-space: nowrap;
171173
margin-left: var(--sys-size-3);
172174
}

0 commit comments

Comments
 (0)