Skip to content

Commit f6dc377

Browse files
authored
Merge pull request #5 from lukemadden/styles
add scroll functionality to RightContainer by adding css style and ce…
2 parents 3e6a98d + 8b05132 commit f6dc377

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

app/src/components/left/HTMLPanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const htmlTypesToRender = state.HTMLTypes.filter(type => type.name !== 'separato
145145
// direction='column'
146146
// justify='center'
147147
// alignItems='center'
148+
id="HTMLItemsGrid"
148149
>
149150
{htmlTypesToRender.map(option => (
150151
<HTMLItem

app/src/containers/RightContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const RightContainer = (): JSX.Element => {
277277
};
278278

279279
return (
280-
<div className="column right" style={style}>
280+
<div className="column right" id="rightContainer" style={style}>
281281
<ComponentPanel />
282282
<ProjectManager />
283283
{/* -----------------------------MOVED PROJECT MANAGER------------------------------------ */}

app/src/public/styles/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ LEFT COLUMN
136136
flex-wrap: wrap;
137137
}
138138

139+
#HTMLItemsGrid {
140+
margin-left: 15px;
141+
}
142+
139143
#HTMLItem {
140144
/* transition: background 0.5s ease-in-out; */
141145
transition: 0.3s;
@@ -313,6 +317,10 @@ RIGHT COLUMN
313317
/////////////////////////////////////////////
314318
*/
315319

320+
#rightContainer {
321+
overflow: scroll;
322+
}
323+
316324
.export {
317325
border-top: 1px solid #ccc;
318326
display: flex;

0 commit comments

Comments
 (0)