Skip to content

Commit

Permalink
[Fix] Can unfold again the constructions in the city
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadawoo committed Dec 13, 2024
1 parent d5b9616 commit dc751aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/view/HtmlCityEnclosure.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public function block_constructions_list($config_buildings, $buildings_component
$this->block_construction_foldable($building_id, $building['name'], $building['defenses'],
$building['icon_path'], $building['icon_html'],
$status, $child_level, $buildings_components, $items_caracs, $zone_items).'
<tr id="building'.$building_id.'" class="folded">
<tr id="building'.$building_id.'" class="folded hidden">
<td>
<ul class="tabs">
<li class="tab"><a href="#tabDescr'.$building_id.'" class="active">Description</a></li>
Expand Down
7 changes: 1 addition & 6 deletions public/resources/css/city.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
#constructions .items_list {
flex-direction: column;
gap:4px;
padding:1em 0;
padding:1em 0 0 0.5em;
/*background:#fbeee6;*/
}
#constructions .item_label {
Expand Down Expand Up @@ -408,11 +408,6 @@
border-bottom-left-radius:8em;
}

.city_block .folded {
display:none;
margin:0 0.2em 1.5em 0;
}

/* Suggestions of constructions */
.construction_card h3 {
margin-top:0.5em;
Expand Down

0 comments on commit dc751aa

Please sign in to comment.