fix: fixed width issue of incontext sidebar (#1395)
This commit is contained in:
@@ -104,7 +104,7 @@ SidebarBase.propTypes = {
|
||||
|
||||
SidebarBase.defaultProps = {
|
||||
title: '',
|
||||
width: '50rem',
|
||||
width: '45rem',
|
||||
allowFullHeight: false,
|
||||
showTitleBar: true,
|
||||
className: '',
|
||||
|
||||
@@ -42,7 +42,7 @@ const SidebarBase = ({
|
||||
'd-none': currentSidebar !== sidebarId,
|
||||
}, className)}
|
||||
data-testid={`sidebar-${sidebarId}`}
|
||||
style={{ minWidth: shouldDisplayFullScreen ? '100%' : width }}
|
||||
style={{ width: shouldDisplayFullScreen ? '100%' : width }}
|
||||
aria-label={ariaLabel}
|
||||
id="course-sidebar"
|
||||
>
|
||||
@@ -98,7 +98,7 @@ SidebarBase.propTypes = {
|
||||
};
|
||||
|
||||
SidebarBase.defaultProps = {
|
||||
width: '410px',
|
||||
width: '31rem',
|
||||
showTitleBar: true,
|
||||
};
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ const NotificationTray = ({ intl }) => {
|
||||
title={intl.formatMessage(messages.notificationTitle)}
|
||||
ariaLabel={intl.formatMessage(messages.notificationTray)}
|
||||
sidebarId={ID}
|
||||
width="45rem"
|
||||
className={classNames({
|
||||
'h-100': !verifiedMode && !shouldDisplayFullScreen,
|
||||
'ml-4': !shouldDisplayFullScreen,
|
||||
|
||||
Reference in New Issue
Block a user