Skip to content

Commit

Permalink
chore: fix panel display issue on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
AXeL-dev committed Feb 27, 2022
1 parent f932dd7 commit 86ddff5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/__snapshots__/Panel.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exports[`renders panel correctly 1`] = `
</h2>
</div>
<div
class="ub-dspl_flex ub-flx-drct_column ub-flx_1 ub-min-h_115px ub-pl_16px ub-pr_16px ub-pb_20px ub-pt_20px ub-box-szg_border-box"
class="ub-dspl_flex ub-flx-drct_column ub-min-h_115px ub-pl_16px ub-pr_16px ub-pb_20px ub-pt_20px ub-box-szg_border-box"
>
<div
class="ub-dspl_flex ub-box-szg_border-box"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Panel/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ export class Panel extends Component {
render() {
return (
<Pane minWidth={350}>
<Header />
{!this.state.ready ? null : (
<>
<Pane display="flex" flexDirection="column" flex={1} minHeight={115} paddingX={16} paddingY={20}>
<Header />
<Pane display="flex" flexDirection="column" minHeight={115} paddingX={16} paddingY={20}>
{this.state.isEnabled && this.state.schedule.isEnabled ? (
<Pane display="flex">
<Pane display="flex" alignItems="center" flex={1}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Timer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ export class Timer extends Component {
render() {
return (
<Pane minWidth={350}>
{/* <Header /> */}
{!this.state.ready ? null : (
<>
{/* <Header /> */}
<Pane display="flex" minHeight={177} paddingX={16} paddingY={18} alignItems="center" justifyContent="center">
<CountdownCircleTimer
key={this.state.key}
Expand Down

0 comments on commit 86ddff5

Please sign in to comment.