diff --git a/src/components/common/modifiers.css b/src/components/common/modifiers.css
index fe8071e..6842e0c 100644
--- a/src/components/common/modifiers.css
+++ b/src/components/common/modifiers.css
@@ -1,5 +1,6 @@
.modifier-container {
display: flex;
+ padding: 1px 8px;
}
.modifier-container:nth-child(2n) {
@@ -9,6 +10,7 @@
.modifier-amount {
flex-basis: 100px;
flex-shrink: 0;
+ text-align: right;
}
.modifier-description {
diff --git a/src/data/common.tsx b/src/data/common.tsx
index 12f8ade..f23e745 100644
--- a/src/data/common.tsx
+++ b/src/data/common.tsx
@@ -305,13 +305,13 @@ export function createCollapsibleModifierSections(
const modifiers = unref(collapsed.value[i]) ? null : (
<>
+
+ {renderJSX(unref(processed.baseText[i]) ?? "Base")}
+
{format(unref(processed.base[i]) ?? 1)}
{s.unit}
-
- {renderJSX(unref(processed.baseText[i]) ?? "Base")}
-
{renderJSX(unref(s.modifier.description))}
>
@@ -328,8 +328,15 @@ export function createCollapsibleModifierSections(
{modifiers}
- Total: {format(s.modifier.apply(unref(processed.base[i]) ?? 1))}
- {s.unit}
+
+
+ Total
+
+
+ {format(s.modifier.apply(unref(processed.base[i]) ?? 1))}
+ {s.unit}
+
+
>
);
diff --git a/src/game/modifiers.tsx b/src/game/modifiers.tsx
index e6e5f66..dcd7e38 100644
--- a/src/game/modifiers.tsx
+++ b/src/game/modifiers.tsx
@@ -77,16 +77,16 @@ export function createAdditiveModifier(
? undefined
: jsx(() => (
-
- {Decimal.gte(unref(processedAddend), 0) ? "+" : ""}
- {format(unref(processedAddend))}
-
{unref(processedDescription) ? (
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
{renderJSX(unref(processedDescription)!)}
) : null}
+
+ {Decimal.gte(unref(processedAddend), 0) ? "+" : ""}
+ {format(unref(processedAddend))}
+
))
};
@@ -125,15 +125,15 @@ export function createMultiplicativeModifier (
-
- x{format(unref(processedMultiplier))}
-
{unref(processedDescription) ? (
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
{renderJSX(unref(processedDescription)!)}
) : null}
+
+ ×{format(unref(processedMultiplier))}
+
))
};
@@ -194,9 +194,6 @@ export function createExponentialModifier(
? undefined
: jsx(() => (
-
- ^{format(unref(processedExponent))}
-
{unref(processedDescription) ? (
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
@@ -204,6 +201,9 @@ export function createExponentialModifier(
{supportLowNumbers ? " (+1 effective)" : null}
) : null}
+
+ ^{format(unref(processedExponent))}
+
))
};
@@ -279,16 +279,21 @@ export function createModifierSection(
+ {renderJSX(baseText)}
{format(base)}
{unit}
- {renderJSX(baseText)}
{renderJSX(unref(modifier.description))}
- Total: {format(modifier.apply(base))}
- {unit}
+
+ Total
+
+ {format(modifier.apply(base))}
+ {unit}
+
+
);
}