Skip to content

Commit

Permalink
Fix layout following ES translation update
Browse files Browse the repository at this point in the history
  • Loading branch information
dlm committed Nov 27, 2024
1 parent f5526eb commit a27c261
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
10 changes: 10 additions & 0 deletions StarWars5E/src/css/translations.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,14 @@
flex-direction: column;
gap: 0;
}

.ship-cargo .hp .top input,
.ship-mods .hp .top input ,
.ship-suites .hp .top input {
width: 110px;
}

.attacks .top .lang-long {
font-size: 7.5px;
}
}
6 changes: 3 additions & 3 deletions StarWars5E/src/html/ship/cargo.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</div>
</fieldset>
<div class="weighttotal">
<span class="label" data-i18n="total-cargo-tons-u">TOTAL CARGO (TONS)</span>
<span class="label break-lang" data-i18n="total-cargo-tons-u">TOTAL CARGO (TONS)</span>
<input type="text" name="attr_weighttotal" value="0">
</div>
</div>
Expand Down Expand Up @@ -108,7 +108,7 @@
</div>
</fieldset>
<div class="weighttotal">
<span class="label" data-i18n="total-hidden-cargo-tons-u">TOTAL HIDDEN CARGO (TONS)</span>
<span class="label break-lang" data-i18n="total-hidden-cargo-tons-u">TOTAL HIDDEN CARGO (TONS)</span>
<input type="text" name="attr_hiddenweighttotal" value="0">
</div>
</div>
Expand Down Expand Up @@ -159,4 +159,4 @@
<span class="label" data-i18n="total-hidden-cargo-tons-u">HIDDEN CARGO (TONS)</span>
</div>
</div>
</div>
</div>
12 changes: 6 additions & 6 deletions StarWars5E/src/html/ship/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<input type="number" name="attr_navcomputer_bonus">
</div>
<div class="label">
<span data-i18n="navcomputer_bonus-u">NAVCOMPUTER BONUS</span>
<span class="break-lang" data-i18n="navcomputer_bonus-u">NAVCOMPUTER BONUS</span>
</div>
</div>
<div class="flex-row insp-prof-container">
Expand Down Expand Up @@ -325,11 +325,11 @@
</div>
<div class="speed">
<input type="text" name="attr_ship_turnspeed">
<span class="label" data-i18n="ship_turnspeed-u">TURNING SPEED</span>
<span class="label break-lang" data-i18n="ship_turnspeed-u">TURNING SPEED</span>
</div>
<div class="speed">
<input type="text" name="attr_ship_flyspeed">
<span class="label" data-i18n="ship_flyspeed-u">FLYING SPEED</span>
<span class="label break-lang" data-i18n="ship_flyspeed-u">FLYING SPEED</span>
</div>
</div>
<div class="hp">
Expand Down Expand Up @@ -409,7 +409,7 @@
<input type="checkbox" name="attr_deathsave_succ3">
</div>

<button style="margin-top:8px;" type="roll" name="roll_death_save"
<button style="margin-top:8px;" class="break-lang" type="roll" name="roll_death_save"
value="@{wtype}&{template:simple} {{rname=^{destruction-save-u}}} {{mod=@{death_save_bonus}}} {{r1=[[@{d20}+@{death_save_bonus}[MOD]@{globalsavingthrowbonus}]]}} {{normal=1}} {{global=@{global_save_mod}}} @{charname_output}"
data-i18n="destruction-saves-u">DESTRUCTION SAVES
</button>
Expand Down Expand Up @@ -472,12 +472,12 @@
<div class="attacks" style="position: relative;min-height:100px;min-width:500px">
<div class="top" style="margin-left:5px;">
<span class="label" style="width:50px;margin:0 10px 0 0;padding:0" data-i18n="ship-weapon-category-u">CATEGORY</span>
<span class="label" style="width:50px;margin:0 9px 0 0;padding:0" data-i18n="ship-weapon-facing-u">FACING</span>
<span class="label lang-long" style="width:50px;margin:0 9px 0 0;padding:0" data-i18n="ship-weapon-facing-u">FACING</span>
<span class="label" style="width:140px;margin:0 8px 0 0;padding:0" data-i18n="name-u">NAME</span>
<span class="label" style="width:50px;margin:0 9px 0 0;padding:0" data-i18n="ship-weapon-range-u">RANGE</span>
<span class="label" style="width:35px;margin:0 2px 0 0;padding:0" data-i18n="atk-u">ATK</span>
<span class="label" style="width:75px;margin:0 2px 0 0;padding:0" data-i18n="dmg-type-u">DAMAGE/TYPE</span>
<span class="label" style="width:30px;margin:0;padding:0" data-i18n="attacks-per-round-u">ATKS</span>
<span class="label lang-long" style="width:30px;margin:0;padding:0" data-i18n="attacks-per-round-u">ATKS</span>
</div>
<fieldset class="repeating_attack">
<div class="attack">
Expand Down

0 comments on commit a27c261

Please sign in to comment.