Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3357643
D6164.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D6164.diff
View Options
diff --git a/web/sidebar/community-picker.css b/web/sidebar/community-picker.css
--- a/web/sidebar/community-picker.css
+++ b/web/sidebar/community-picker.css
@@ -1,34 +1,40 @@
.container {
display: flex;
flex-direction: column;
- align-items: center;
- width: 84px;
background: var(--community-bg);
padding: 24px 0 32px 0;
border-right: 1px solid var(--border-color);
flex-grow: 1;
+ overflow: auto;
+ width: 400px;
}
.spacer {
flex-grow: 1;
}
-.container button {
- color: var(--fg);
-}
-
-.container svg {
- color: var(--fg);
- padding: 0;
-}
-
.activeContainer {
display: flex;
- justify-content: center;
width: 100%;
box-sizing: border-box;
border-left: 8px solid var(--community-settings-selected);
border-right: 8px solid transparent;
+ padding-left: 12px;
+ height: 40px;
+ align-items: center;
+}
+
+.inactiveContainer {
+ display: flex;
+ padding-left: 20px;
+ height: 40px;
+ align-items: center;
+}
+
+.inactiveContainer svg,
+.activeContainer svg {
+ color: var(--fg);
+ padding: 0;
}
.settingsIcon {
@@ -40,3 +46,8 @@
height: 30px;
border-radius: 50%;
}
+
+.drawerWrapper {
+ align-self: flex-start;
+ width: 100%;
+}
diff --git a/web/sidebar/community-picker.react.js b/web/sidebar/community-picker.react.js
--- a/web/sidebar/community-picker.react.js
+++ b/web/sidebar/community-picker.react.js
@@ -6,6 +6,7 @@
import SWMansionIcon from 'lib/components/SWMansionIcon.react.js';
+import CommunityDrawer from './community-drawer.react.js';
import css from './community-picker.css';
import { updateNavInfoActionType } from '../redux/action-types.js';
import { useSelector } from '../redux/redux-utils.js';
@@ -26,6 +27,7 @@
const isSettingsOpen = useSelector(state => state.navInfo.tab === 'settings');
const settingsButtonContainerClass = classNames({
[css.activeContainer]: isSettingsOpen,
+ [css.inactiveContainer]: !isSettingsOpen,
});
const openChat = React.useCallback(
@@ -46,6 +48,7 @@
);
const inboxButtonContainerClass = classNames({
[css.activeContainer]: isInboxOpen,
+ [css.inactiveContainer]: !isInboxOpen,
});
return (
@@ -53,6 +56,9 @@
<a className={inboxButtonContainerClass} onClick={openChat}>
<SWMansionIcon icon="inbox" size={36} />
</a>
+ <div className={css.drawerWrapper}>
+ <CommunityDrawer />
+ </div>
<div className={css.spacer} />
<div className={settingsButtonContainerClass}>
<a className={css.settingsIcon} onClick={openAccountSettings}>
diff --git a/web/sidebar/left-layout-aside.css b/web/sidebar/left-layout-aside.css
--- a/web/sidebar/left-layout-aside.css
+++ b/web/sidebar/left-layout-aside.css
@@ -3,6 +3,7 @@
background: var(--bg);
border-right: 1px solid var(--border-color);
display: flex;
+ width: 560px;
}
.navigationPanelContainer {
diff --git a/web/style.css b/web/style.css
--- a/web/style.css
+++ b/web/style.css
@@ -54,7 +54,7 @@
div.layout {
height: 100vh;
display: grid;
- grid-template-columns: 244px repeat(12, 1fr);
+ grid-template-columns: 560px repeat(12, 1fr);
grid-template-rows: 65px calc(100vh - 65px);
grid-template-areas:
'nav nav nav nav nav nav nav nav nav nav nav nav nav'
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 12:47 AM (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577837
Default Alt Text
D6164.diff (3 KB)
Attached To
Mode
D6164: [web] Add community drawer to CommunityPicker
Attached
Detach File
Event Timeline
Log In to Comment