Skip to content

Commit

Permalink
Minimum top margin in tabbed examples (#820)
Browse files Browse the repository at this point in the history
* Minimum top margin in tabbed examples

* Changed test

* padding-top instead of collapsed margin

* prettier fix
  • Loading branch information
NiedziolkaMichal authored Sep 29, 2022
1 parent d3891a7 commit 870de64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __tests__/puppeteer-tabbed-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("Tabbed Editor", () => {
"<style>" +
".output{background-color:#fff;color:#15141aff;" +
"font-size:0.9rem;line-height:1.5;overflow:scroll;" +
"padding:1rem;height:100%;}" +
"padding:2rem 1rem 1rem;height:100%;}" +
"</style>" +
"<style>" +
"address { font-variant-caps: small-caps;}a { font-variant: normal;}" +
Expand Down
2 changes: 1 addition & 1 deletion editor/js/editor-libs/template-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @returns base style rules for the output class
*/
export function getOutputBaseStyle() {
return ".output{background-color:#fff;color:#15141aff;font-size:0.9rem;line-height:1.5;overflow:scroll;padding:1rem;height:100%;}";
return ".output{background-color:#fff;color:#15141aff;font-size:0.9rem;line-height:1.5;overflow:scroll;padding:2rem 1rem 1rem;height:100%;}";
}

/**
Expand Down
5 changes: 1 addition & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ export default {
},
},
optimization: {
minimizer: [
`...`,
new CssMinimizerPlugin(),
],
minimizer: [`...`, new CssMinimizerPlugin()],
splitChunks: {
chunks: "async",
},
Expand Down

0 comments on commit 870de64

Please sign in to comment.