Skip to content

Commit

Permalink
Merge pull request tobymao#10015 from andrewzwicky/card_tweaks_css
Browse files Browse the repository at this point in the history
[multiple] Adjust CSS to not add extra bar under minor companies.
  • Loading branch information
tobymao authored Dec 13, 2023
2 parents f6ebb50 + 993bcf1 commit 6fd24b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/app/view/game/company.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def render
fontSize: '80%',
textAlign: 'left',
fontWeight: 'normal',
whiteSpace: 'pre-line',
}

value_style = {
Expand Down
3 changes: 2 additions & 1 deletion lib/engine/game/g_1817/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,8 @@ def corporation_size_name(entity)
end

def empty_auction_slot
@empty_auction_slot ||= Engine::Company.new(sym: '', name: '', value: nil, revenue: nil, desc: '', color: 'LightGrey')
@empty_auction_slot ||= Engine::Company.new(sym: '', name: '', value: nil, revenue: nil, desc: "\n" * 3,
color: 'LightGrey')
end

def company_header(company)
Expand Down
1 change: 0 additions & 1 deletion public/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ text.number {
border: 1px solid gainsboro;
border-radius: 0.7rem;
align-self: start;
min-height: 100px;
}
.game.card {
margin: 0 0.5rem 0.5rem 0;
Expand Down

0 comments on commit 6fd24b4

Please sign in to comment.