Skip to content

Commit 2a044c9

Browse files
authored
Merge branch 'main' into everything-searchable
2 parents 8e0b8c8 + 4c9e4ae commit 2a044c9

File tree

7 files changed

+161
-153
lines changed

7 files changed

+161
-153
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"copy-webpack-plugin": "^13.0.0",
135135
"cross-env": "^7.0.3",
136136
"css-loader": "^7.1.2",
137-
"cssnano": "^7.0.7",
137+
"cssnano": "^7.1.0",
138138
"devtools-license-check": "^0.9.0",
139139
"eslint": "^8.57.1",
140140
"eslint-config-prettier": "^10.1.5",
@@ -145,7 +145,7 @@
145145
"eslint-plugin-jest-dom": "^5.5.0",
146146
"eslint-plugin-jest-formatting": "^3.1.0",
147147
"eslint-plugin-react": "^7.37.5",
148-
"eslint-plugin-testing-library": "^7.5.3",
148+
"eslint-plugin-testing-library": "^7.6.0",
149149
"espree": "^10.4.0",
150150
"fake-indexeddb": "^6.0.1",
151151
"file-loader": "^6.2.0",
@@ -161,7 +161,7 @@
161161
"lockfile-lint": "^4.14.1",
162162
"mkdirp": "^3.0.1",
163163
"npm-run-all2": "^8.0.4",
164-
"open": "^10.1.2",
164+
"open": "^10.2.0",
165165
"patch-package": "^8.0.0",
166166
"postcss": "^8.5.6",
167167
"postcss-loader": "^8.1.1",
@@ -170,10 +170,10 @@
170170
"raw-loader": "^4.0.2",
171171
"rimraf": "^5.0.10",
172172
"style-loader": "^4.0.0",
173-
"stylelint": "^16.21.0",
173+
"stylelint": "^16.21.1",
174174
"stylelint-config-idiomatic-order": "^10.0.0",
175175
"stylelint-config-standard": "^38.0.0",
176-
"webpack": "^5.99.9",
176+
"webpack": "^5.100.2",
177177
"webpack-cli": "^6.0.1",
178178
"webpack-dev-server": "^5.2.2",
179179
"workbox-webpack-plugin": "^7.3.0",

src/components/app/Details.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.Details {
22
display: flex;
3+
overflow: clip;
34
flex: auto;
45
flex-direction: column;
56
}

src/components/app/Details.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -86,32 +86,32 @@ class ProfileViewerImpl extends PureComponent<Props> {
8686
visibleTabs={visibleTabs}
8787
onSelectTab={this._onSelectTab}
8888
/>
89-
{hasSidebar ? (
90-
<Localized
91-
id={
92-
isSidebarOpen
93-
? 'Details--close-sidebar-button'
94-
: 'Details--open-sidebar-button'
95-
}
96-
attrs={{ title: true }}
97-
vars={{ isSidebarOpen: isSidebarOpen }}
98-
>
99-
<button
100-
className={classNames(
101-
'sidebar-open-close-button',
102-
'photon-button',
103-
'photon-button-ghost',
104-
{
105-
'sidebar-open-close-button-isopen': isSidebarOpen,
106-
'sidebar-open-close-button-isclosed': !isSidebarOpen,
107-
}
108-
)}
109-
title={isSidebarOpen ? 'Close the sidebar' : 'Open the sidebar'}
110-
type="button"
111-
onClick={this._onClickSidebarButton}
112-
/>
113-
</Localized>
114-
) : null}
89+
90+
<Localized
91+
id={
92+
isSidebarOpen
93+
? 'Details--close-sidebar-button'
94+
: 'Details--open-sidebar-button'
95+
}
96+
attrs={{ title: true }}
97+
vars={{ isSidebarOpen: isSidebarOpen }}
98+
>
99+
<button
100+
className={classNames(
101+
'sidebar-open-close-button',
102+
'photon-button',
103+
'photon-button-ghost',
104+
{
105+
'sidebar-open-close-button-isopen': isSidebarOpen,
106+
'sidebar-open-close-button-isclosed': !isSidebarOpen,
107+
}
108+
)}
109+
title={isSidebarOpen ? 'Close the sidebar' : 'Open the sidebar'}
110+
type="button"
111+
disabled={!hasSidebar}
112+
onClick={this._onClickSidebarButton}
113+
/>
114+
</Localized>
115115
</div>
116116
<Localized
117117
id="Details--error-boundary-message"

src/components/app/ProfileName.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
.profileNameButton {
1818
overflow: hidden;
19+
min-width: 80px;
1920
padding: 0 9px;
2021
font-weight: 700;
2122
margin-inline-end: 5px;
@@ -24,6 +25,7 @@
2425
}
2526

2627
.profileNameButton::before {
28+
flex-shrink: 0;
2729
background-image: url(firefox-profiler-res/img/svg/edit-name-profiler.svg);
2830
}
2931

src/components/app/ProfileViewer.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@
113113
border-bottom: 1px solid var(--grey-30);
114114
margin: 0;
115115
background: var(--grey-10);
116+
overflow-x: auto;
117+
scrollbar-width: none;
116118
}
117119

118120
.profileViewerSpacer {

src/profile-logic/process-profile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,9 +1483,12 @@ function _convertGeckoMarkerSchema(
14831483
const discardedFields = staticFields.filter(
14841484
(_f, i) => i !== staticDescriptionFieldIndex
14851485
);
1486-
if (discardedFields.length !== 0) {
1486+
const potentiallyUsefulDiscardedFields = discardedFields.filter(
1487+
(f) => f.label !== 'Marker' && f.value !== 'UserTiming'
1488+
);
1489+
if (potentiallyUsefulDiscardedFields.length !== 0) {
14871490
console.warn(
1488-
`Discarding the following static fields from marker schema "${name}": ${discardedFields.join(', ')}`
1491+
`Discarding the following static fields from marker schema "${markerSchema.name}": ${potentiallyUsefulDiscardedFields.map((f) => f.label + ': ' + f.value).join(', ')}`
14891492
);
14901493
}
14911494
description = staticFields[staticDescriptionFieldIndex].value;

0 commit comments

Comments
 (0)