Skip to content

Commit

Permalink
Fix to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ianvexler committed Feb 26, 2024
1 parent 1f5e18b commit cdaa9b9
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 34 deletions.
19 changes: 13 additions & 6 deletions dist/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,6 @@ h1, .h1 {
font-style: normal;
}

.sidebar-bg-grey {
background-color: var(--texmo-bg-primary);
}

.main-nav i {
font-size: 3rem;
}
Expand Down Expand Up @@ -1087,7 +1083,7 @@ a.breadcrumb-item:hover {
.list-desktop {
display: none;
}
@media (min-width: 1024px) {
@media (min-width: 768px) {
.list-desktop {
display: block;
}
Expand All @@ -1096,7 +1092,7 @@ a.breadcrumb-item:hover {
.list-mobile {
display: none;
}
@media (max-width: 1024px) {
@media (max-width: 768px) {
.list-mobile {
display: block;
}
Expand Down Expand Up @@ -13175,7 +13171,9 @@ textarea.form-control-lg {
}

.side-navbar {
background-color: var(--texmo-bg-primary);
border-top: var(--texmo-bg-secondary-borders) solid 1px;
width: 100px;
}

.texmo-table.table {
Expand Down Expand Up @@ -13233,4 +13231,13 @@ textarea.form-control-lg {

.chip.bg-secondary {
color: black;
}

.layout-container {
width: calc(100% - 100px);
}
@media (max-width: 768px) {
.layout-container {
width: 100%;
}
}
19 changes: 13 additions & 6 deletions dist/index.es.css
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,6 @@ h1, .h1 {
font-style: normal;
}

.sidebar-bg-grey {
background-color: var(--texmo-bg-primary);
}

.main-nav i {
font-size: 3rem;
}
Expand Down Expand Up @@ -1087,7 +1083,7 @@ a.breadcrumb-item:hover {
.list-desktop {
display: none;
}
@media (min-width: 1024px) {
@media (min-width: 768px) {
.list-desktop {
display: block;
}
Expand All @@ -1096,7 +1092,7 @@ a.breadcrumb-item:hover {
.list-mobile {
display: none;
}
@media (max-width: 1024px) {
@media (max-width: 768px) {
.list-mobile {
display: block;
}
Expand Down Expand Up @@ -13175,7 +13171,9 @@ textarea.form-control-lg {
}

.side-navbar {
background-color: var(--texmo-bg-primary);
border-top: var(--texmo-bg-secondary-borders) solid 1px;
width: 100px;
}

.texmo-table.table {
Expand Down Expand Up @@ -13233,4 +13231,13 @@ textarea.form-control-lg {

.chip.bg-secondary {
color: black;
}

.layout-container {
width: calc(100% - 100px);
}
@media (max-width: 768px) {
.layout-container {
width: 100%;
}
}
4 changes: 2 additions & 2 deletions dist/index.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.es.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26128,7 +26128,7 @@ var ProgressBar = function (_a) {

var SideNavbar = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
return (React.createElement("div", __assign$1({ className: "d-none d-md-flex flex-column flex-shrink-0 sticky-top sidebar-bg-grey p-3 side-navbar ".concat(className) }, rest), children));
return (React.createElement("div", __assign$1({ className: "d-none d-md-flex flex-column flex-shrink-0 sticky-top p-3 side-navbar ".concat(className) }, rest), children));
};

/**
Expand Down Expand Up @@ -27624,7 +27624,7 @@ var LayoutBrand = function (_a) {

var LayoutContainer = function (_a) {
var className = _a.className, children = _a.children, style = _a.style, rest = __rest(_a, ["className", "children", "style"]);
return (React.createElement(Container$1, __assign$1({ fluid: true, className: "".concat(className, " d-flex flex-column px-0"), style: __assign$1(__assign$1({}, style), { minHeight: '100vh' }) }, rest), children));
return (React.createElement(Container$1, __assign$1({ fluid: true, className: "".concat(className, " layout-container d-flex flex-column px-0"), style: __assign$1(__assign$1({}, style), { minHeight: '100vh' }) }, rest), children));
};

var LayoutMain = function (_a) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

19 changes: 13 additions & 6 deletions dist/index.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,6 @@ h1, .h1 {
font-style: normal;
}

.sidebar-bg-grey {
background-color: var(--texmo-bg-primary);
}

.main-nav i {
font-size: 3rem;
}
Expand Down Expand Up @@ -1087,7 +1083,7 @@ a.breadcrumb-item:hover {
.list-desktop {
display: none;
}
@media (min-width: 1024px) {
@media (min-width: 768px) {
.list-desktop {
display: block;
}
Expand All @@ -1096,7 +1092,7 @@ a.breadcrumb-item:hover {
.list-mobile {
display: none;
}
@media (max-width: 1024px) {
@media (max-width: 768px) {
.list-mobile {
display: block;
}
Expand Down Expand Up @@ -13175,7 +13171,9 @@ textarea.form-control-lg {
}

.side-navbar {
background-color: var(--texmo-bg-primary);
border-top: var(--texmo-bg-secondary-borders) solid 1px;
width: 100px;
}

.texmo-table.table {
Expand Down Expand Up @@ -13233,4 +13231,13 @@ textarea.form-control-lg {

.chip.bg-secondary {
color: black;
}

.layout-container {
width: calc(100% - 100px);
}
@media (max-width: 768px) {
.layout-container {
width: 100%;
}
}
2 changes: 1 addition & 1 deletion dist/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.js.map

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions scss/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ h1 {
font-style: normal;
}

.sidebar-bg-grey {
background-color: var(--texmo-bg-primary);
}

.main-nav {
i {
font-size: 3rem;
Expand Down Expand Up @@ -145,15 +141,15 @@ a.breadcrumb-item:hover {
.list-desktop {
display: none;

@media (min-width: 1024px) {
@media (min-width: 768px) {
display: block;
}
}

.list-mobile {
display: none;

@media(max-width: 1024px) {
@media(max-width: 768px) {
display: block;
}
}
1 change: 1 addition & 0 deletions scss/texmo-react-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
@import '../src/components/userProfile/UserProfile.scss';
@import '../src/components/infoTile/InfoTile.scss';
@import '../src/components/chip/Chip.scss';
@import '../src/components/layout/Layout.scss';
7 changes: 7 additions & 0 deletions src/components/layout/Layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.layout-container {
width: calc(100% - 100px);

@media(max-width: 768px) {
width: 100%;
}
}
2 changes: 1 addition & 1 deletion src/components/layout/components/LayoutContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const LayoutContainer = ({
return (
<Container
fluid
className={`${className} d-flex flex-column px-0`}
className={`${className} layout-container d-flex flex-column px-0`}
style={{ ...style, minHeight: '100vh' }}
{...rest}
>
Expand Down
2 changes: 2 additions & 0 deletions src/components/sideNavbar/SideNavbar.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.side-navbar {
background-color: var(--texmo-bg-primary);
border-top: var(--texmo-bg-secondary-borders) solid 1px;
width: 100px;
}
2 changes: 1 addition & 1 deletion src/components/sideNavbar/SideNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface SideNavbarProps extends React.HTMLProps<HTMLDivElement> {}
const SideNavbar = ({ className, children, ...rest }: SideNavbarProps) => {
return (
<div
className={`d-none d-md-flex flex-column flex-shrink-0 sticky-top sidebar-bg-grey p-3 side-navbar ${className}`}
className={`d-none d-md-flex flex-column flex-shrink-0 sticky-top p-3 side-navbar ${className}`}
{...rest}
>
{children}
Expand Down

0 comments on commit cdaa9b9

Please sign in to comment.