@cu-mkp/editioncrafter 1.3.1-beta.10 → 1.3.1-beta.11

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.
@@ -1,3 +1,22 @@
1
+ function KeyValue(props) {
2
+ return (
3
+ <>
4
+ <span>{`${props.label}: `}</span>
5
+ {
6
+ props.data.startsWith('http')
7
+ ? (
8
+ <a href={props.data} target="_blank">
9
+ { props.data }
10
+ </a>
11
+ )
12
+ : (
13
+ <span>{props.data}</span>
14
+ )
15
+ }
16
+ </>
17
+ )
18
+ }
19
+
1
20
  export default function ImageMetadata(props) {
2
21
  const { data } = props
3
22
 
@@ -5,7 +24,7 @@ export default function ImageMetadata(props) {
5
24
  <div className="image-metadata">
6
25
  { Object.keys(data)?.map(key => (
7
26
  <div key={key}>
8
- { `${key}: ${data[key]}` }
27
+ <KeyValue label={key} data={data[key]} />
9
28
  </div>
10
29
  ))}
11
30
  </div>
@@ -13,4 +13,8 @@
13
13
  padding: 4px 6px;
14
14
  }
15
15
 
16
+ .image-metadata a {
17
+ color: white;
18
+ }
19
+
16
20
  }
@@ -30,7 +30,7 @@
30
30
  background-color: #242629;
31
31
  z-index: 10000;
32
32
  padding: 12px 0 12px 12px;
33
- width: 450px;
33
+ width: 490px;
34
34
  height: 100%;
35
35
  max-height: calc(97dvh - 48px);
36
36
  border-left: solid white 1px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cu-mkp/editioncrafter",
3
3
  "type": "module",
4
- "version": "1.3.1-beta.10",
4
+ "version": "1.3.1-beta.11",
5
5
  "private": false,
6
6
  "description": "A simple digital critical edition publication tool",
7
7
  "license": "MIT",