Skip to content

Commit

Permalink
Changes to styling and responsiveness for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Nov 13, 2024
1 parent c956d7b commit 85208b9
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 19 deletions.
3 changes: 2 additions & 1 deletion SharePointFramework/PortfolioWebParts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"@fluentui/react-datepicker-compat": "~0.4.38",
"@fluentui/react-motion-preview": "~0.5.20",
"@fluentui/react-nav-preview": "~0.9.1",
"react-gauge-component": "~1.2.61"
"react-gauge-component": "~1.2.61",
"@fluentui/react-motion-components-preview": "~0.3.0"
},
"devDependencies": {
"@microsoft/eslint-config-spfx": "1.17.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
padding: 16px 32px;
gap: 16px;
display: grid;
justify-content: flex-start;
align-items: flex-start;
height: fit-content;
width: 100%;

.ideaHeader {
display: flex;
Expand All @@ -21,12 +21,12 @@
.toolbar {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 16px;

.hamburger {
position: absolute;
z-index: 2;
top: 5px;
left: 32px;
}
}
Expand All @@ -41,7 +41,7 @@

.idea {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
grid-gap: 16px;
margin-bottom: 16px;

Expand All @@ -55,7 +55,7 @@
flex-direction: column;
padding: 16px 32px;
border-radius: var(--borderRadiusXLarge);
margin: 0 32px;
width: fit-content;

.ideaTitle {
font-size: 1rem;
Expand All @@ -66,9 +66,14 @@
.status {
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
flex-direction: row;
gap: 32px;
margin-bottom: 16px;

.field {
max-width: 620px;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ export const IdeaModule: FC<IIdeaModuleProps> = (props) => {
{fieldValues
.filter((model) => model.internalName.includes(filterKey))
.map((model, idx) => (
<IdeaField key={idx} model={model} />
<div className={styles.field} key={idx}>
<IdeaField key={idx} model={model} />
</div>
))}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
display: flex;
flex-direction: row;
justify-content: center;
align-items: center
align-items: center;
flex-wrap: wrap;
}
41 changes: 30 additions & 11 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85208b9

Please sign in to comment.