@rpg-engine/long-bow 0.7.96 → 0.7.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.7.96",
3
+ "version": "0.7.97",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -55,10 +55,11 @@ const ItemHeader = styled.div`
55
55
  margin-bottom: 4px;
56
56
 
57
57
  label {
58
- font-size: 0.9rem;
58
+ font-size: 0.8rem;
59
59
  font-weight: bold;
60
60
  display: flex;
61
61
  align-items: center;
62
+ padding-right: 1rem;
62
63
  }
63
64
  `;
64
65
 
@@ -51,15 +51,15 @@ const MinCraftingRequirementsText = styled.div<{ levelIsOk: boolean }>`
51
51
  font-size: 0.55rem;
52
52
  margin: 0;
53
53
  margin-bottom: 12px;
54
+ margin-left: 0.5rem;
54
55
  color: ${({ levelIsOk }) =>
55
56
  levelIsOk ? uiColors.lightGreen : uiColors.lightGray} !important;
56
57
  `;
57
58
 
58
- const IngredientsTitle = styled.div`
59
+ const TooltipTitle = styled.div`
59
60
  color: ${uiColors.yellow};
60
61
  font-size: 0.6rem;
61
62
  margin-bottom: 12px;
62
- text-transform: uppercase;
63
63
  letter-spacing: 0.5px;
64
64
  `;
65
65
 
@@ -105,12 +105,13 @@ export const CraftingTooltip: React.FC<ICraftingTooltipProps> = ({
105
105
 
106
106
  return (
107
107
  <TooltipContainer x={x} y={y}>
108
+ <TooltipTitle>Skill Requirements</TooltipTitle>
108
109
  <MinCraftingRequirementsText levelIsOk={levelIsOk}>
109
110
  {modifyString(`${recipe?.minCraftingRequirements?.[0] ?? ''}`)} lvl{' '}
110
111
  {recipe?.minCraftingRequirements?.[1] ?? 0} ({levelInSkill})
111
112
  </MinCraftingRequirementsText>
112
113
 
113
- <IngredientsTitle>Ingredients</IngredientsTitle>
114
+ <TooltipTitle>Ingredients</TooltipTitle>
114
115
  {recipe.ingredients.map((ingredient, index) => {
115
116
  const itemQtyInInventory = !inventory
116
117
  ? 0