Skip to content

Commit

Permalink
style vocablist
Browse files Browse the repository at this point in the history
  • Loading branch information
nora-kauczor committed Nov 21, 2024
1 parent 1bc6a3e commit 76c69f2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
1 change: 1 addition & 0 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#app {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
Expand Down
13 changes: 7 additions & 6 deletions frontend/src/components/VocabList/VocabList.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,25 @@
flex-direction: column;
justify-content: space-between;
align-content: center;
width: 100%;
max-width: 300px;
gap: 10px;
}

#search-section-input-and-button{

#search-section-input-and-button {
display: flex;
justify-content: space-between;
/*justify-content: space-between;*/
gap: 10px;
width: 95%;
max-height: 50px;
}

#input {
margin: 0 0 0 3px;
width: 100%;
margin: 0;
border-radius: 0.5rem;
width: 70%;
}


#reset-button {
margin: 0;
}
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/components/VocabList/VocabList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@ export default function VocabList(props: Readonly<Props>) {

return (<div id={"vocab-list"}>

<div id={"search-section"}>
<div id={"search-section"}
>
<label htmlFor={"search-field"}>Search vocabulary by
translation</label>
<div id={"search-section-input-and-button"}>
<input id={"input"}
className={`${props.calendarMode ? "input-calendar-mode" :
"input-backlog-mode"}`}
value={searchTerm}
onChange={handleChangeInput}/>
<button id={"reset-button"}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/VocabListItem/VocabListItem.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
margin: 10px;
padding: 20px;
width: 15rem;
height: auto;
}

#text-wrapper {
Expand All @@ -22,7 +23,6 @@
gap: 10px;
margin: 0;
padding: 0 20px 0 0;
height: 100%;
line-height: 25px;
word-wrap: break-word;
}
Expand All @@ -42,7 +42,6 @@
gap: 0;
margin: 0;
padding: 0;
height: 100%;
word-wrap: break-word;
}

Expand All @@ -63,12 +62,13 @@
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
right: 2px;
justify-content: space-evenly;
}

.list-item-button {
height: 25%;
height: 30%;
}

.de_activate-button-non-editable-vocab {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/BacklogPage/BacklogPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function BacklogPage(props: Readonly<Props>) {
}

return (<div id={"backlog-page"} className={"page"} role={"main"}>
<div style={{height: "50px"}}/>
<div style={{height: "40px"}}/>
<VocabList vocabs={props.vocabs}
calendarMode={false}
activateVocab={props.activateVocab}
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/HomePage/HomePage.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#homepage {
height: 65vh;
height: 50vh;
justify-content: flex-end;
}

#homepage-text-and-button {
width: 70%;
max-width: 300px;
Expand Down

0 comments on commit 76c69f2

Please sign in to comment.