зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1222417 - Filter Input Fixes in toolbar.js and memory.css. r=vp
This commit is contained in:
Родитель
5e926a6a07
Коммит
3d99da3205
|
@ -40,7 +40,7 @@ const Toolbar = module.exports = createClass({
|
||||||
dom.div({ className: "devtools-toolbar" },
|
dom.div({ className: "devtools-toolbar" },
|
||||||
dom.button({
|
dom.button({
|
||||||
id: "take-snapshot",
|
id: "take-snapshot",
|
||||||
className: `take-snapshot devtools-button`,
|
className: "take-snapshot devtools-button",
|
||||||
onClick: onTakeSnapshotClick,
|
onClick: onTakeSnapshotClick,
|
||||||
title: L10N.getStr("take-snapshot")
|
title: L10N.getStr("take-snapshot")
|
||||||
}),
|
}),
|
||||||
|
@ -50,7 +50,7 @@ const Toolbar = module.exports = createClass({
|
||||||
L10N.getStr("toolbar.breakdownBy"),
|
L10N.getStr("toolbar.breakdownBy"),
|
||||||
dom.select({
|
dom.select({
|
||||||
id: "select-breakdown",
|
id: "select-breakdown",
|
||||||
className: `select-breakdown`,
|
className: "select-breakdown",
|
||||||
onChange: e => onBreakdownChange(e.target.value),
|
onChange: e => onBreakdownChange(e.target.value),
|
||||||
}, ...breakdowns.map(({ name, displayName }) => dom.option({ key: name, value: name }, displayName)))
|
}, ...breakdowns.map(({ name, displayName }) => dom.option({ key: name, value: name }, displayName)))
|
||||||
),
|
),
|
||||||
|
@ -81,6 +81,7 @@ const Toolbar = module.exports = createClass({
|
||||||
dom.input({
|
dom.input({
|
||||||
id: "filter",
|
id: "filter",
|
||||||
type: "search",
|
type: "search",
|
||||||
|
className: "devtools-searchinput",
|
||||||
placeholder: L10N.getStr("filter.placeholder"),
|
placeholder: L10N.getStr("filter.placeholder"),
|
||||||
onChange: event => setFilterString(event.target.value),
|
onChange: event => setFilterString(event.target.value),
|
||||||
value: !!filterString ? filterString : undefined,
|
value: !!filterString ? filterString : undefined,
|
||||||
|
|
|
@ -100,6 +100,11 @@ html, body, #app, #memory-tool {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#filter {
|
||||||
|
align-self: stretch;
|
||||||
|
margin: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO bug 1213100
|
* TODO bug 1213100
|
||||||
* Once we figure out how to store invertable buttons (pseudo element like in
|
* Once we figure out how to store invertable buttons (pseudo element like in
|
||||||
|
|
Загрузка…
Ссылка в новой задаче