@rpg-engine/long-bow 0.6.34 → 0.6.36

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.6.34",
3
+ "version": "0.6.36",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -26,10 +26,10 @@ export const TutorialStepper = React.memo(
26
26
  component: (
27
27
  <LessonContainer key={index} className="lesson-container">
28
28
  <LessonTitle className="lesson-title">{lesson.title}</LessonTitle>
29
- {lesson.image && (
30
- <LessonImage className="lesson-image" style={imageStyle}>
29
+ <LessonImage>
30
+ {lesson.imageUrl ? (
31
31
  <a
32
- href={lesson.imageUrl ?? 'javascript:void(0)'}
32
+ href={lesson.imageUrl}
33
33
  target="_blank"
34
34
  rel="noopener noreferrer"
35
35
  >
@@ -39,8 +39,14 @@ export const TutorialStepper = React.memo(
39
39
  loading="lazy"
40
40
  />
41
41
  </a>
42
- </LessonImage>
43
- )}
42
+ ) : (
43
+ <img
44
+ src={lesson.image}
45
+ alt={lesson.title || 'Tutorial image'}
46
+ loading="lazy"
47
+ />
48
+ )}
49
+ </LessonImage>
44
50
  <LessonFooter className="lesson-footer">
45
51
  {lesson.body && (
46
52
  <LessonBody