Page MenuHomePhabricator

D9905.diff
No OneTemporary

D9905.diff

diff --git a/web/components/keyserver-pill.css b/web/components/keyserver-pill.css
new file mode 100644
--- /dev/null
+++ b/web/components/keyserver-pill.css
@@ -0,0 +1,19 @@
+.keyserverContainer {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 5px 10px;
+ border-radius: 8px;
+ background-color: var(--panel-background-primary-default);
+ column-gap: 4px;
+}
+
+.keyserverName {
+ color: var(--text-background-primary-default);
+ font-size: var(--s-font-14);
+ font-weight: var(--semi-bold);
+}
+
+.keyserverIcon {
+ color: var(--text-background-primary-default);
+}
diff --git a/web/components/keyserver-pill.react.js b/web/components/keyserver-pill.react.js
new file mode 100644
--- /dev/null
+++ b/web/components/keyserver-pill.react.js
@@ -0,0 +1,23 @@
+// @flow
+
+import * as React from 'react';
+
+import css from './keyserver-pill.css';
+import CommIcon from '../CommIcon.react.js';
+
+type Props = {
+ +keyserverAdminUsername: string,
+};
+
+function KeyserverPill(props: Props): React.Node {
+ const { keyserverAdminUsername } = props;
+
+ return (
+ <div className={css.keyserverContainer}>
+ <CommIcon icon="cloud-filled" size={18} className={css.keyserverIcon} />
+ <div className={css.keyserverName}>{keyserverAdminUsername}</div>
+ </div>
+ );
+}
+
+export default KeyserverPill;
diff --git a/web/sidebar/community-creation/community-creation-keyserver-label.css b/web/sidebar/community-creation/community-creation-keyserver-label.css
--- a/web/sidebar/community-creation/community-creation-keyserver-label.css
+++ b/web/sidebar/community-creation/community-creation-keyserver-label.css
@@ -9,21 +9,5 @@
div.ancestryContainer p {
color: var(--community-creation-ancestry-text);
-}
-
-.keyserverContainer {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 5px 10px;
- margin: 0 6px;
- border-radius: 8px;
- background-color: var(--community-creation-keyserver-container);
-}
-
-.keyserverName {
- padding-left: 6px;
- color: var(--thread-ancestor-color);
- font-size: var(--s-font-14);
- font-weight: var(--semi-bold);
+ margin-right: 6px;
}
diff --git a/web/sidebar/community-creation/community-creation-keyserver-label.react.js b/web/sidebar/community-creation/community-creation-keyserver-label.react.js
--- a/web/sidebar/community-creation/community-creation-keyserver-label.react.js
+++ b/web/sidebar/community-creation/community-creation-keyserver-label.react.js
@@ -3,16 +3,13 @@
import * as React from 'react';
import css from './community-creation-keyserver-label.css';
-import CommIcon from '../../CommIcon.react.js';
+import KeyserverPill from '../../components/keyserver-pill.react.js';
function CommunityCreationKeyserverLabel(): React.Node {
return (
<div className={css.ancestryContainer}>
<p>within</p>
- <div className={css.keyserverContainer}>
- <CommIcon icon="cloud-filled" size={18} color="white" />
- <div className={css.keyserverName}>ashoat</div>
- </div>
+ <KeyserverPill keyserverAdminUsername="ashoat" />
</div>
);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 11:30 PM (20 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2572796
Default Alt Text
D9905.diff (3 KB)

Event Timeline