refactor: increase augment description length and update motherboard card layout to support multiline text

This commit is contained in:
CPTN Cosmo 2026-04-26 19:11:35 +02:00
parent 4a7aa554f3
commit a9185baf99
2 changed files with 7 additions and 8 deletions

View file

@ -26,11 +26,11 @@ export function getAugments() {
const name = feature.label || feature.name || ""; const name = feature.label || feature.name || "";
if (name.startsWith("Ikonis:")) { if (name.startsWith("Ikonis:")) {
augments.push({ augments.push({
id: id, // This is the native system key (e.g., "force" or "ikonis-guard") id: id,
name: name.replace("Ikonis:", "").trim(), name: name.replace("Ikonis:", "").trim(),
fullName: name, fullName: name,
effect: feature.description ? feature.description.replace(/<[^>]*>?/gm, '').substring(0, 100) + "..." : "Native Feature", effect: feature.description ? feature.description.replace(/<[^>]*>?/gm, '').substring(0, 200).trim() : "Native Feature",
cost: "Homebrew" cost: "" // Cost is included in the description
}); });
} }
} }

View file

@ -28,14 +28,13 @@
<div class="augments-list" style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;"> <div class="augments-list" style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;">
{{#each ikonis.augments as |aug|}} {{#each ikonis.augments as |aug|}}
<div class="augment-item motherboard-card" style="padding: 1rem; background: rgba(255,255,255,0.02); border: 1px solid #2d3436; border-radius: 8px; position: relative;"> <div class="augment-item motherboard-card" style="padding: 1rem; background: rgba(255,255,255,0.02); border: 1px solid #2d3436; border-radius: 8px; position: relative; min-height: 80px; display: flex; flex-direction: column;">
<a class="remove-btn" data-action="removeAugment" data-id="{{aug.id}}" style="position: absolute; top: 0.5rem; right: 0.5rem; color: #666; cursor: pointer;"><i class="fa-solid fa-trash-alt"></i></a> <a class="remove-btn" data-action="removeAugment" data-id="{{aug.id}}" style="position: absolute; top: 0.5rem; right: 0.5rem; color: #666; cursor: pointer;"><i class="fa-solid fa-trash-alt"></i></a>
<div style="display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem;"> <div style="display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.25rem;">
<span class="aug-name" style="font-weight: bold; font-size: 1.1rem; color: #ffffff;">{{aug.name}}</span> <span class="aug-name" style="font-weight: bold; font-size: 1.1rem; color: #ffffff;">{{aug.name}}</span>
</div> </div>
<div class="aug-stats" style="font-size: 0.9rem; color: #a4b0be;"> <div class="aug-stats" style="font-size: 0.9rem; color: #a4b0be; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25;">
<div class="effect">{{aug.effect}}</div> {{aug.effect}}
<div class="cost" style="font-style: italic; margin-top: 0.25rem;">Cost: {{aug.cost}}</div>
</div> </div>
</div> </div>
{{else}} {{else}}