mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1370004 - Rearrange the order of items on the Layout view. r=pbro
This commit is contained in:
parent
78d7a481bd
commit
9a673db796
@ -95,7 +95,7 @@ module.exports = createClass({
|
||||
{
|
||||
className: "layout-no-grids",
|
||||
},
|
||||
getStr("layout.noGrids")
|
||||
getStr("layout.noGridsOnThisPage")
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -60,16 +60,6 @@ const App = createClass({
|
||||
},
|
||||
Accordion({
|
||||
items: [
|
||||
{
|
||||
header: BOXMODEL_L10N.getStr("boxmodel.title"),
|
||||
component: BoxModel,
|
||||
componentProps: this.props,
|
||||
opened: Services.prefs.getBoolPref(BOXMODEL_OPENED_PREF),
|
||||
onToggled: () => {
|
||||
let opened = Services.prefs.getBoolPref(BOXMODEL_OPENED_PREF);
|
||||
Services.prefs.setBoolPref(BOXMODEL_OPENED_PREF, !opened);
|
||||
}
|
||||
},
|
||||
{
|
||||
header: LAYOUT_L10N.getStr("layout.header"),
|
||||
component: Grid,
|
||||
@ -80,6 +70,16 @@ const App = createClass({
|
||||
Services.prefs.setBoolPref(GRID_OPENED_PREF, !opened);
|
||||
}
|
||||
},
|
||||
{
|
||||
header: BOXMODEL_L10N.getStr("boxmodel.title"),
|
||||
component: BoxModel,
|
||||
componentProps: this.props,
|
||||
opened: Services.prefs.getBoolPref(BOXMODEL_OPENED_PREF),
|
||||
onToggled: () => {
|
||||
let opened = Services.prefs.getBoolPref(BOXMODEL_OPENED_PREF);
|
||||
Services.prefs.setBoolPref(BOXMODEL_OPENED_PREF, !opened);
|
||||
}
|
||||
},
|
||||
]
|
||||
})
|
||||
);
|
||||
|
@ -31,9 +31,9 @@ layout.header=Grid
|
||||
# settings container in the CSS Grid pane.
|
||||
layout.gridDisplaySettings=Grid Display Settings
|
||||
|
||||
# LOCALIZATION NOTE (layout.noGrids): In the case where there are no CSS grid
|
||||
# LOCALIZATION NOTE (layout.noGridsOnThisPage): In the case where there are no CSS grid
|
||||
# containers to display.
|
||||
layout.noGrids=No grids
|
||||
layout.noGridsOnThisPage=CSS Grid is not in use on this page
|
||||
|
||||
# LOCALIZATION NOTE (layout.overlayMultipleGrids): The header for the list of grid
|
||||
# container elements that can be highlighted in the CSS Grid pane.
|
||||
|
Loading…
Reference in New Issue
Block a user