fix: fixed width issue of incontext sidebar (#1395)

This commit is contained in:
sundasnoreen12
2024-05-27 13:43:31 +05:00
committed by GitHub
parent e3ecee18e3
commit 1264b4245c
3 changed files with 4 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ SidebarBase.propTypes = {
SidebarBase.defaultProps = {
title: '',
width: '50rem',
width: '45rem',
allowFullHeight: false,
showTitleBar: true,
className: '',

View File

@@ -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,
};

View File

@@ -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,