-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support: Display brand logo when editor mode #9632
base: master
Are you sure you want to change the base?
Conversation
|
|
||
const isEditorMode = editorMode === EditorMode.Editor; | ||
const shouldHideTitle = isEditorMode && isMdSize && (isDrawerMode() || isCollapsedMode()); | ||
const shouldShowEditorHead = isEditorMode && isXlSize; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldShowEditorSidebarHead にしよう
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このコンポーネントは冗長なので、AppTitle.tsx に AppTitleOnSidebarHead のエディターバージョンを作る
その際、新規コンポーネント追加でもいいし、props にしてもよい
{appTitle} | ||
</Link> | ||
</div> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このコンポーネントは小さいので、appTitle を出すか出さないかを自律的に判断しない方がよい
props に hideAppTitle?: boolean
のようなものを用意し、true が入っていたら隠すようにする
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppTitle.module.scss に入れるべき
#9596 のFBを受けてブランチを切り直してやり直し
Task
https://redmine.weseek.co.jp/issues/160589
Summary
Screenshot