PLT-6905 - Updating channel header design (#6789)
* PLT-6905 - Updating channel header design * Updating border-radius * Updating radius for wide icons * Updating trigger for overlay * Updating UI for channel header * Updating channel header sizing * Updating channel header css * Updating sidebar css * Updating status icons * Adjusting border * Updating comment * Removing type from status icon * Fixing UI issues for the channel header/sidebar * make "Add a channel description" open the channel header modal * Updating status and opacity * Updating stauts icon positioning * Updating description and heading size * Updating UI changes * Updating UI changes * add a focused class to the parent div .search__form and then remove when hover away * Fix active state for pinned posts icon * Updating UI changes * Update channel header text
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
97cfe62309
Коммит
d64d1f4029
@@ -26,6 +26,8 @@ class SwitchChannelSuggestion extends Suggestion {
|
||||
render() {
|
||||
const {item, isSelection} = this.props;
|
||||
const channel = item.channel;
|
||||
const globeIcon = Constants.GLOBE_ICON_SVG;
|
||||
const lockIcon = Constants.LOCK_ICON_SVG;
|
||||
|
||||
let className = 'mentions__name';
|
||||
if (isSelection) {
|
||||
@@ -35,9 +37,19 @@ class SwitchChannelSuggestion extends Suggestion {
|
||||
let displayName = channel.display_name;
|
||||
let icon = null;
|
||||
if (channel.type === Constants.OPEN_CHANNEL) {
|
||||
icon = <div className='status'><i className='fa fa-globe'/></div>;
|
||||
icon = (
|
||||
<span
|
||||
className='icon icon__globe icon--body'
|
||||
dangerouslySetInnerHTML={{__html: globeIcon}}
|
||||
/>
|
||||
);
|
||||
} else if (channel.type === Constants.PRIVATE_CHANNEL) {
|
||||
icon = <div className='status'><i className='fa fa-lock'/></div>;
|
||||
icon = (
|
||||
<span
|
||||
className='icon icon__lock icon--body'
|
||||
dangerouslySetInnerHTML={{__html: lockIcon}}
|
||||
/>
|
||||
);
|
||||
} else if (channel.type === Constants.GM_CHANNEL) {
|
||||
displayName = getChannelDisplayName(channel);
|
||||
icon = <div className='status status--group'>{'G'}</div>;
|
||||
|
||||
Ссылка в новой задаче
Block a user