Fix formatting of security and medical notes in PDA.

* Line beaks were being smooshed becuase PDA nanoui uses HTML template.  Fixed by adding white-space: pre-wrap style.
This commit is contained in:
Leshana
2017-02-21 19:01:25 -05:00
parent d476e18a21
commit 26b2ce1f4d
4 changed files with 8 additions and 4 deletions
+4
View File
@@ -212,6 +212,10 @@ h4 {
font-size: 10px;
}
.multiLine {
white-space: pre-wrap;
}
.noticePlaceholder {
position: relative;
font-size: 12px;
+1 -1
View File
@@ -75,7 +75,7 @@ code/modules/mob/living/silicon/pai/software_modules.dm
</div>
<div class="item">
<div class="itemLabel">Important Notes</div>
<div class="itemContent">{{:data.medical.notes}}</div>
<div class="itemContent multiLine">{{:data.medical.notes}}</div>
</div>
{{/if}}
+1 -1
View File
@@ -65,7 +65,7 @@ code/modules/mob/living/silicon/pai/software_modules.dm
</div>
<div class="item">
<div class="itemLabel">Important Notes</div>
<div class="itemContent">{{:data.security.notes}}</div>
<div class="itemContent multiLine">{{:data.security.notes}}</div>
</div>
{{/if}}
+2 -2
View File
@@ -591,7 +591,7 @@ Used In File(s): \code\game\objects\items\devices\PDA\PDA.dm
<span class="good">Details: </span> <span class="average">{{:data.records.medical.alg_d}} </span><br><br>
<span class="good">Current Disease: </span> <span class="average">{{:data.records.medical.cdi}} </span><br>
<span class="good">Details: </span> <span class="average">{{:data.records.medical.alg_d}} </span><br><br>
<span class="good">Important Notes: </span> <span class="average">{{:data.records.medical.notes}} </span>
<span class="good">Important Notes: </span> <span class="average multiLine">{{:data.records.medical.notes}} </span>
{{else}}
<span class="bad">
Medical Record Lost!
@@ -643,7 +643,7 @@ Used In File(s): \code\game\objects\items\devices\PDA\PDA.dm
<span class="good">Details: </span><span class="average">{{:data.records.security.mi_crim_d}} </span><br><br>
<span class="good">Major Crimes: </span><span class="average">{{:data.records.security.ma_crim}} </span><br>
<span class="good">Details: </span><span class="average">{{:data.records.security.ma_crim_d}} </span><br><br>
<span class="good">Important Notes: </span><span class="average">{{:data.records.security.notes}} </span>
<span class="good">Important Notes: </span><span class="average multiLine">{{:data.records.security.notes}} </span>
{{else}}
<span class="bad">
Security Record Lost!<br><br>