onPin: PropTypes.func,
onMove: PropTypes.func,
onClick: PropTypes.func,
+ appendContent: PropTypes.node,
};
state = {
}
render () {
- const { title, icon, active, children, pinned, multiColumn, extraButton, showBackButton, intl: { formatMessage }, placeholder } = this.props;
+ const { title, icon, active, children, pinned, multiColumn, extraButton, showBackButton, intl: { formatMessage }, placeholder, appendContent } = this.props;
const { collapsed, animating } = this.state;
const wrapperClassName = classNames('column-header__wrapper', {
{(!collapsed || animating) && collapsedContent}
</div>
</div>
+
+ {appendContent}
</div>
);
pinned={pinned}
multiColumn={multiColumn}
extraButton={announcementsButton}
+ appendContent={hasAnnouncements && showAnnouncements && <AnnouncementsContainer />}
>
<ColumnSettingsContainer />
</ColumnHeader>
- {hasAnnouncements && showAnnouncements && <AnnouncementsContainer />}
-
<StatusListContainer
trackScroll={!pinned}
scrollKey={`home_timeline-${columnId}`}
.column-header__wrapper {
position: relative;
flex: 0 0 auto;
+ z-index: 1;
&.active {
+ box-shadow: 0 1px 0 rgba($highlight-text-color, 0.3);
+
&::before {
display: block;
content: "";
position: absolute;
- top: 35px;
+ bottom: -13px;
left: 0;
right: 0;
margin: 0 auto;
background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
}
}
+
+ .announcements {
+ z-index: 1;
+ position: relative;
+ }
}
.column-header {
}
&.active {
- box-shadow: 0 1px 0 rgba($highlight-text-color, 0.3);
-
.column-header__icon {
color: $highlight-text-color;
text-shadow: 0 0 10px rgba($highlight-text-color, 0.4);
color: $darker-text-color;
transition: max-height 150ms ease-in-out, opacity 300ms linear;
opacity: 1;
+ z-index: 1;
+ position: relative;
&.collapsed {
max-height: 0;