Skip to content

Commit

Permalink
fix(board): spacing error in chrome 56 (#1183)
Browse files Browse the repository at this point in the history
* fix(styling): using margin when gap is not supported by browser

* fix(styling): changed one of the duplicate classnames

* fix(styling): added minimum height to table header

* fix(board): CSS restructuring
  • Loading branch information
fredrbus authored Aug 28, 2023
1 parent da2d760 commit f2da2f1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions next-tavla/src/Board/scenarios/Board/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@
.board {
display: flex;
}
.board > * {
margin: 10px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function TableHeader({
transportModes: (TTransportMode | null)[] | null
}) {
return (
<div className={classes.headerWrapper}>
<div className={classes.tableHeaderWrapper}>
<h1 className={classes.heading}>{heading}</h1>
{transportModes && (
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.headerWrapper {
.tableHeaderWrapper {
display: flex;
align-items: center;
min-height: 2em;
}

.heading {
Expand Down
6 changes: 6 additions & 0 deletions next-tavla/src/Shared/styles/pages/board.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@
overflow: hidden;
padding: 1em 0;
}

@supports not (gap: 0.75em) {
.rootContainer > * {
margin: 0.75em;
}
}

0 comments on commit f2da2f1

Please sign in to comment.