File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,16 @@ export default ((opts?: Partial<ContentMetaOptions>) => {
48
48
return (
49
49
< p show-comma = { options . showComma } class = { classNames ( displayClass , "content-meta" ) } >
50
50
{ segmentsElements } < br />
51
- < a href = { `https://github.com/morrowind-modding/wiki/edit/main/${ fileRelativePath } ` } class = { classNames ( displayClass , "external" ) } target = { "_blank" } style = { "font-weight:400" } >
52
- < svg xmlns = "http://www.w3.org/2000/svg" width = "24" height = "24" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "lucide lucide-square-pen" > < path d = "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" /> < path d = "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" /> </ svg >
53
- Edit This Page!
54
- </ a >
55
- < a href = { `https://github.com/morrowind-modding/wiki/blame/main/${ fileRelativePath } ` } class = { classNames ( displayClass , "external" ) } target = { "_blank" } style = { "font-weight:400" } >
56
- < svg xmlns = "http://www.w3.org/2000/svg" width = "24" height = "24" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "lucide lucide-folder-clock" > < circle cx = "16" cy = "16" r = "6" /> < path d = "M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2" /> < path d = "M16 14v2l1 1" /> </ svg >
57
- History
58
- </ a >
51
+ < span id = "edit-btn-container" >
52
+ < a href = { `https://github.com/morrowind-modding/wiki/edit/main/${ fileRelativePath } ` } class = { classNames ( displayClass , "external" , "edit-btn" ) } target = { "_blank" } >
53
+ < svg xmlns = "http://www.w3.org/2000/svg" width = "24" height = "24" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "lucide lucide-square-pen" > < path d = "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" /> < path d = "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" /> </ svg >
54
+ Edit page
55
+ </ a >
56
+ < a href = { `https://github.com/morrowind-modding/wiki/blame/main/${ fileRelativePath } ` } class = { classNames ( displayClass , "external" , "edit-btn" ) } target = { "_blank" } >
57
+ < svg xmlns = "http://www.w3.org/2000/svg" width = "24" height = "24" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "lucide lucide-folder-clock" > < circle cx = "16" cy = "16" r = "6" /> < path d = "M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2" /> < path d = "M16 14v2l1 1" /> </ svg >
58
+ View history
59
+ </ a >
60
+ </ span >
59
61
</ p >
60
62
)
61
63
} else {
Original file line number Diff line number Diff line change 12
12
}
13
13
}
14
14
}
15
+
16
+ #edit-btn-container .edit-btn {
17
+ font-weight : 400 ;
18
+ margin-right : 4px ;
19
+ }
20
+ #edit-btn-container svg {
21
+ height : 1.1em ;
22
+ margin : 0 0.1em 0 0 ;
23
+ vertical-align : middle ;
24
+ }
25
+
You can’t perform that action at this time.
0 commit comments