0

fix(ui): restore page margin and background color. Closes #2959

This commit is contained in:
Gabe Kangas 2023-04-26 21:24:26 -07:00
parent 12d321b097
commit 97fb5a80d0
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
5 changed files with 27 additions and 13 deletions

View File

@ -6,8 +6,8 @@ $vert-spacing: 0.75rem;
position: relative;
display: grid;
padding: var(--content-padding);
padding-left: calc(var(--content-padding) * 2);
padding-right: calc(var(--content-padding) * 2);
padding-left: var(--content-padding);
padding-right: var(--content-padding);
}
.row {

View File

@ -3,6 +3,7 @@
.layout {
// this margin is for fixed header
margin-top: 55px;
background-color: var(--theme-color-main-background);
@include screen(tablet) {
position: absolute;
top: 0;
@ -10,7 +11,6 @@
bottom: 0;
right: 0;
// this one is for fixed footer
margin-bottom: 30px
margin-bottom: 30px;
}
}

View File

@ -21,6 +21,7 @@ import {
import { ClientConfig } from '../../../interfaces/client-config.model';
import styles from './Content.module.scss';
import desktopStyles from './DesktopContent.module.scss';
import { Sidebar } from '../Sidebar/Sidebar';
import { OfflineBanner } from '../OfflineBanner/OfflineBanner';
import { AppStateOptions } from '../../stores/application-state';
@ -271,6 +272,7 @@ export const Content: FC = () => {
/>
) : (
<Col span={24} style={{ paddingRight: dynamicPadding }}>
<div className={desktopStyles.bottomSectionContent}>
<DesktopContent
name={name}
summary={summary}
@ -280,6 +282,7 @@ export const Content: FC = () => {
setShowFollowModal={setShowFollowModal}
supportFediverseFeatures={supportFediverseFeatures}
/>
</div>
</Col>
)}
</Row>

View File

@ -0,0 +1,7 @@
$bottomMargin: 4vh;
.bottomSectionContent {
// background-color: green;
width: calc(100% - (2 * $bottomMargin));
margin: 0 $bottomMargin 0 $bottomMargin;
}

View File

@ -9,3 +9,7 @@
position: relative;
top: 0px;
}
.mobileTabs {
margin-bottom: 0px;
}