Bug 1370004 - Rearrange the order of items on the Layout view. r=pbro

This commit is contained in:
Gabriel Luong 2017-06-07 10:07:13 -04:00
parent 78d7a481bd
commit 9a673db796
3 changed files with 13 additions and 13 deletions

View File

@ -95,7 +95,7 @@ module.exports = createClass({
{
className: "layout-no-grids",
},
getStr("layout.noGrids")
getStr("layout.noGridsOnThisPage")
);
},

View File

@ -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);
}
},
]
})
);

View File

@ -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.