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 ==========
|
// ========== Mobile ==========
|
||||||
const mobilePublishAnnouncement = {
|
const mobilePublishAnnouncement = {
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
|
padding: '10px',
|
||||||
|
width: '100%',
|
||||||
':hover': {
|
':hover': {
|
||||||
color: '#32A041',
|
color: '#32A041',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const mobileCard = {};
|
const mobileCard = {
|
||||||
|
width: '100%',
|
||||||
|
padding: '10px ',
|
||||||
|
};
|
||||||
|
|
||||||
const mobile = {
|
const mobile = {
|
||||||
publishAnnouncement: mobilePublishAnnouncement,
|
publishAnnouncement: mobilePublishAnnouncement,
|
||||||
|
|
|
@ -43,7 +43,7 @@ function Header({
|
||||||
value={selectedTabOption}
|
value={selectedTabOption}
|
||||||
onChange={onSelectTabOption}
|
onChange={onSelectTabOption}
|
||||||
aria-label="Tabs para informações da disciplina"
|
aria-label="Tabs para informações da disciplina"
|
||||||
variant="fullWidth"
|
variant={layoutType === 'mobile' ? 'scrollable' : 'fullWidth'}
|
||||||
sx={tabs}
|
sx={tabs}
|
||||||
>
|
>
|
||||||
{Object.values(TAB_OPTIONS).map(option => (
|
{Object.values(TAB_OPTIONS).map(option => (
|
||||||
|
|
|
@ -6,14 +6,16 @@ const desktopTitle = {
|
||||||
const desktopPaper = classColor => ({
|
const desktopPaper = classColor => ({
|
||||||
width: '100%',
|
width: '100%',
|
||||||
borderTop: `5px solid ${classColor}`,
|
borderTop: `5px solid ${classColor}`,
|
||||||
padding: '20px',
|
padding: '30px',
|
||||||
});
|
});
|
||||||
|
|
||||||
const desktopTabs = {
|
const desktopTabs = {
|
||||||
|
display: 'flex',
|
||||||
marginLeft: '-20px',
|
marginLeft: '-20px',
|
||||||
marginRight: '-20px',
|
marginRight: '-20px',
|
||||||
marginBottom: '-20px',
|
marginBottom: '-20px',
|
||||||
marginTop: '30px',
|
marginTop: '30px',
|
||||||
|
padding: '10px',
|
||||||
};
|
};
|
||||||
|
|
||||||
const desktopAvatar = {
|
const desktopAvatar = {
|
||||||
|
|
Loading…
Reference in a new issue