git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit a33e94e7ad223afbbc7e71c3d98503d161cc576e

display public key clearly on user's profile

fixes #461
Matt McKegg committed on 10/14/2017, 5:23:30 AM
Parent: 39e2313627e48eb9e37b220156a07c43f51d7adc

Files changed

locales/en.jsonchanged
modules/page/html/render/profile.jschanged
styles/dark/profile-header.mcsschanged
styles/light/profile-header.mcsschanged
locales/en.jsonView
@@ -147,6 +147,7 @@
147147 "Blocked": "Blocked",
148148 "pt": "pt",
149149 "blocked ": "blocked ",
150150 "unblocked ": "unblocked ",
151- "Click to block syncing with this person and hide their posts": "Click to block syncing with this person and hide their posts"
152-}
151+ "Click to block syncing with this person and hide their posts": "Click to block syncing with this person and hide their posts",
152+ "Public key for this profile": "Public key for this profile"
153+}
modules/page/html/render/profile.jsView
@@ -178,8 +178,11 @@
178178 ])
179179 ])
180180 ])
181181 ]),
182+ h('section -publicKey', [
183+ h('pre', {title: i18n('Public key for this profile')}, id)
184+ ]),
182185 h('section -description', [
183186 computed(description, (text) => {
184187 if (typeof text === 'string') {
185188 return api.message.html.markdown(text)
styles/dark/profile-header.mcssView
@@ -29,7 +29,20 @@
2929 max-height: 350px
3030 overflow: auto
3131 -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
3232 }
33+ -publicKey {
34+ pre {
35+ color: #808080;
36+ margin: 2px 0;
37+ font-size: 120%;
38+ background: #333333;
39+ padding: 3px;
40+ ::selection {
41+ background: black
42+ color: white
43+ }
44+ }
45+ }
3346 }
3447 }
3548 }
styles/light/profile-header.mcssView
@@ -36,7 +36,16 @@
3636 max-height: 350px
3737 overflow: auto
3838 -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
3939 }
40+ -publicKey {
41+ pre {
42+ color: #b3b3b3;
43+ margin: 2px 0;
44+ font-size: 120%;
45+ background: #ffffff;
46+ padding: 3px;
47+ }
48+ }
4049 }
4150 }
4251 }

Built with git-ssb-web