git ssb

16+

cel / patchfoo



Commit af94c59b8b18f67c8ba91c37c972e05cb7b1072d

Fix links

Stuart Gathman committed on 8/7/2017, 12:36:57 AM
Parent: 4bfb33a4d47d3c3d5a32dd12169c04be0592ff6b

Files changed

lib/render.jschanged
static/styles.csschanged
lib/render.jsView
@@ -189,9 +189,9 @@
189189 if (/^ssb:\/\//.test(href)) href = href.substr(6)
190190 switch (href[0]) {
191191 case '%':
192192 if (!u.isRef(href)) return false
193- return this.opts.base + encodeURIComponent(href)
193 + return this.opts.base + encodeURIComponent(href).replace(/%2F/g,"/")
194194 case '@':
195195 if (!u.isRef(href)) return false
196196 return this.opts.base + href
197197 case '&':
static/styles.cssView
@@ -1,7 +1,7 @@
11 * {
22 box-sizing: border-box;
3- overflow:scroll;
3 + overflow:auto;
44 }
55
66 body {
77 margin: 0 auto;
@@ -87,10 +87,10 @@
8787 .nav-bar a {
8888 color: #eee;
8989 margin: 0px;
9090 text-decoration: none;
91- padding-top: 404px;
92- padding-bottom: 200px;
91 + --padding-top: 404px;
92 + --padding-bottom: 200px;
9393 padding-left: 10px;
9494 padding-right: 10px;
9595 }
9696

Built with git-ssb-web