Skip to content

Commit 0af3623

Browse files
committed
resize
1 parent 563af62 commit 0af3623

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function App() {
209209
{logged &&
210210
<button className="btn btn-light m-1" onClick={loadDataFromServer}>
211211
<i className="bi bi-arrow-clockwise px-1"></i>
212-
<span className='d-xl-inline d-none'>Update data</span>
212+
<span className='d-xl-inline d-none'>Update</span>
213213
</button>
214214
}
215215
<button className="btn btn-light m-1" onClick={() => setOpenLogin(true)}>

src/Cards/AddCard.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function AddCard({ onCreate, onDeleteAll }) {
4646
<div className="container">
4747
<div className="row my-2 text-center">
4848

49-
<div className="col-lg-9 col-md-10 col-12 p-1">
49+
<div className="col-xl-10 col-lg-10 col-md-10 col-12 p-1">
5050
<TextareaAutosize type="text" className="form-control" placeholder="Card name" id="Text"
5151
{...input.bind}
5252
style={{ resize: "none" }}
@@ -56,14 +56,13 @@ function AddCard({ onCreate, onDeleteAll }) {
5656
/>
5757
</div>
5858

59-
<div className="col-lg-1 col-md-1 col-sm-3 col-4 p-1">
59+
<div className="col-xl-1 col-lg-1 col-md-1 col-sm-3 col-4 p-1">
6060
<Palette setColor={setColor} className={`btn btn-outline-secondary palitra-btn ${blackOnHover() ? "palitra-blackOnHover" : "palitra-lightOnHover"}`} style={{ width: "100%", background: color }}></Palette>
6161
</div>
6262

63-
<div className="col-lg-2 col-md-1 col p-1">
63+
<div className="col-xl-1 col-lg-1 col-md-1 col p-1">
6464
<button disabled={!input.value().trim()} className="btn btn-success btn-block" onClick={submitHandler}>
6565
<i className="bi bi-clipboard-plus"></i>
66-
<span className='d-lg-inline d-none'> Add card</span>
6766
</button>
6867
</div>
6968

src/Cards/CardList.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ function calcWidth() {
1212
const xlarge = 1200
1313
const winWidth = window.innerWidth
1414

15-
if (winWidth >= xlarge) return '20%'
16-
else if (winWidth >= large) return '25%'
17-
else if (winWidth >= middle) return '33.33%'
18-
else if (winWidth >= small) return '50%'
15+
if (winWidth >= xlarge) return '25%'
16+
else if (winWidth >= large) return '33.33%'
17+
else if (winWidth >= middle) return '50%'
18+
else if (winWidth >= small) return '100%'
1919
else return '100%'
2020
}
2121

0 commit comments

Comments
 (0)