Skip to content

Commit 4ce92ac

Browse files
committed
Fix UI - Small Screen #11
1 parent 58f8a9a commit 4ce92ac

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<div class="container">
1919
<div class="left">
2020
<div id="btnContainer">
21-
<button class="btn active" onclick="listView()"><i class="fa fa-bars"></i></button>
22-
<button class="btn" onclick="gridView()"><i class="fa fa-th-large"></i></button>
21+
<button class="btn" onclick="listView()"><i class="fa fa-bars"></i></button>
22+
<button class="btn active" onclick="gridView()"><i class="fa fa-th-large"></i></button>
2323
<button class="btn" id="addBtn"><i class="fas fa-plus"></i></button>
2424
</div>
2525
<div class="row" id="notes">

public/javascript/script.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var i;
77

88
// List View
99
function listView() {
10+
1011
for (i = 0; i < elements.length; i++) {
1112
elements[i].style.width = "100%";
1213
}
@@ -27,15 +28,6 @@ for (var i = 0; i < btns.length; i++) {
2728
this.className += " active";
2829
});
2930
}
30-
var editContainer = document.getElementById("editContainer");
31-
var editbtns = editContainer.getElementsByClassName("btn");
32-
for (var i = 0; i < editbtns.length; i++) {
33-
editbtns[i].addEventListener("click", function () {
34-
var current = document.getElementsByClassName("active");
35-
current[0].className = current[0].className.replace(" active", "");
36-
this.className += " active";
37-
});
38-
}
3931

4032
class Notes {
4133
constructor(dbName) {

public/styles/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body {
1616
/* Create two equal columns that floats next to each other */
1717
.column {
1818
float: left;
19-
width: 100%;
19+
width: 50%;
2020
height: 100px;
2121
border: 2px solid #eee;
2222
border-radius: 5%;

0 commit comments

Comments
 (0)