Skip to content

Commit ad562c0

Browse files
committed
Revert changes
1 parent 216730f commit ad562c0

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

public/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
row.innerHTML = '<td><input type="text" id="agenda' + currentRows + '" name="agenda' + currentRows + '"></td>' +
4141
'<td><input type="number" id="time' + currentRows + '" name="time' + currentRows + '"></td>';
4242
document.getElementById('table-body').appendChild(row);
43+
// Move the add button to the end of the last row
44+
const addRowContainer = document.getElementById('add-row-container');
45+
document.getElementById('table-body').appendChild(addRowContainer);
4346
}
4447
if (currentRows === 10) {
4548
document.getElementById('addRowBtn').style.display = 'none';
@@ -73,11 +76,10 @@ <h2>Create Meeting</h2>
7376
<div id="form-buttons">
7477
<input type="submit" value="Start Timer">
7578
<input type="button" value="Copy Timer URL" onclick="copyURLToClipboard()">
79+
<input type="button" id="addRowBtn" value="+" onclick="addRow()">
7680
</div>
7781
</form>
78-
<div id="add-row-container">
79-
<button type="button" class="add-row-btn" id="addRowBtn" onclick="addRow()">+</button>
80-
</div>
82+
8183
</main>
8284
</body>
8385
</html>

public/styles.css

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,34 @@ table {
1212
border-collapse: collapse;
1313
}
1414
th, td {
15-
padding: 10px;
15+
padding: 6px;
1616
text-align: left;
1717
border-bottom: 1px solid #ddd;
1818
}
1919
th {
2020
background-color: #f2f2f2;
2121
font-weight: bold;
2222
}
23-
#form-buttons {
24-
display: flex;
25-
justify-content: space-between;
26-
}
2723
input[type="text"], input[type="number"] {
2824
width: calc(100% - 12px);
29-
padding: 8px;
30-
margin: 4px 0;
25+
padding: 6px;
26+
margin: 2px 0;
3127
border: 1px solid #ccc;
3228
border-radius: 4px;
3329
}
34-
input[type="submit"], input[type="button"] {
35-
width: calc(50% - 12px);
30+
#form-buttons {
31+
display: flex;
32+
justify-content: space-between;
33+
margin: 0 8px 0;
3634
}
37-
.add-row-btn {
38-
margin: 10px 0;
35+
input[type="submit"], input[type="button"] {
36+
width: calc(40% - 12px);
3937
}
40-
#add-row-container {
38+
input[type="button"]#addRowBtn {
39+
width: calc(20% - 12px);
4140
text-align: center;
42-
display: flex;
43-
justify-content: center;
44-
align-items: center;
41+
font-size: 1.4rem;
4542
}
46-
4743
/* Timer and Shared Styles */
4844
body {
4945
font-family: Arial, sans-serif;
@@ -92,9 +88,9 @@ h2 {
9288
font-weight: bold;
9389
color: var(--primary-color);
9490
}
95-
.add-row-btn, .next-button, footer a, input[type="submit"], input[type="button"] {
96-
font-size: 0.8rem;
97-
padding: 10px 20px;
91+
.next-button, footer a, input[type="submit"], input[type="button"] {
92+
font-size: 0.9rem;
93+
padding: 6px 12px;
9894
background-color: var(--btn-primary-color);
9995
color: white;
10096
border: none;
@@ -115,7 +111,7 @@ footer a {
115111
footer a:hover, .next-button:hover, input[type="submit"]:hover, input[type="button"]:hover {
116112
background-color: var(--btn-hover-color);
117113
}
118-
.next-button:disabled {
114+
input[type="button"]#addRowBtn:disabled, .next-button:disabled {
119115
background-color: #6c757d;
120116
cursor: not-allowed;
121117
}

0 commit comments

Comments
 (0)