Make publish announcement card and tabs responsive
This commit is contained in:
parent
8e0922b047
commit
abd66a137e
3 changed files with 10 additions and 3 deletions
|
@ -19,12 +19,17 @@ const desktop = {
|
|||
// ========== Mobile ==========
|
||||
const mobilePublishAnnouncement = {
|
||||
cursor: 'pointer',
|
||||
padding: '10px',
|
||||
width: '100%',
|
||||
':hover': {
|
||||
color: '#32A041',
|
||||
},
|
||||
};
|
||||
|
||||
const mobileCard = {};
|
||||
const mobileCard = {
|
||||
width: '100%',
|
||||
padding: '10px ',
|
||||
};
|
||||
|
||||
const mobile = {
|
||||
publishAnnouncement: mobilePublishAnnouncement,
|
||||
|
|
|
@ -43,7 +43,7 @@ function Header({
|
|||
value={selectedTabOption}
|
||||
onChange={onSelectTabOption}
|
||||
aria-label="Tabs para informações da disciplina"
|
||||
variant="fullWidth"
|
||||
variant={layoutType === 'mobile' ? 'scrollable' : 'fullWidth'}
|
||||
sx={tabs}
|
||||
>
|
||||
{Object.values(TAB_OPTIONS).map(option => (
|
||||
|
|
|
@ -6,14 +6,16 @@ const desktopTitle = {
|
|||
const desktopPaper = classColor => ({
|
||||
width: '100%',
|
||||
borderTop: `5px solid ${classColor}`,
|
||||
padding: '20px',
|
||||
padding: '30px',
|
||||
});
|
||||
|
||||
const desktopTabs = {
|
||||
display: 'flex',
|
||||
marginLeft: '-20px',
|
||||
marginRight: '-20px',
|
||||
marginBottom: '-20px',
|
||||
marginTop: '30px',
|
||||
padding: '10px',
|
||||
};
|
||||
|
||||
const desktopAvatar = {
|
||||
|
|
Loading…
Reference in a new issue