Skip to content

Commit

Permalink
fixed table width completed games
Browse files Browse the repository at this point in the history
  • Loading branch information
Surtt committed Apr 29, 2021
1 parent c4d6365 commit 15d3d31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions services/app/assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,16 @@ a {
transition: opacity 200ms, transform 200ms;
}

.table-layout {
table-layout: fixed;
}

.tr-display-flex {
display: flex;
justify-content: space-between;
width: 790px;
}

@keyframes scale {
0% {
transform: scale(0.5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import GameLevelBadge from '../GameLevelBadge';

const CompletedGames = ({ games }) => (
<div className="table-responsive">
<table className="table table-sm table-striped border-gray border-top-0 mb-0">
<table className="table table-layout table-sm table-striped border-gray border-top-0 mb-0">
<thead>
<tr>
<th className="p-3 border-0">Level</th>
Expand All @@ -19,7 +19,7 @@ const CompletedGames = ({ games }) => (
</thead>
<tbody>
{games.map(game => (
<tr key={game.id}>
<tr className="tr-display-flex" key={game.id}>
<td className="p-3 align-middle text-nowrap">
<GameLevelBadge level={game.level} />
</td>
Expand Down

0 comments on commit 15d3d31

Please sign in to comment.