Commit 6b1e1074 authored by Prakhar Agarwal's avatar Prakhar Agarwal 🎯
Browse files

hover changes max width

parent 3a85f491
......@@ -77,6 +77,14 @@
display: inline-block;
}
#list-item > li {
max-width: 150px;
}
#list-item:hover > li {
max-width: 75px;
}
#content {
position: relative;
}
......
......@@ -2140,7 +2140,7 @@ function update_file_ls(){
list_item.classList.add("d-flex", "justify-content-between");
list_item.setAttribute("id", "list-item");
// Add name of file
a.append("./"+file);
a.append(file);
// Add open button
a.onclick = function(){open_patch(file)};
......@@ -2148,7 +2148,6 @@ function update_file_ls(){
edit_icon.onclick = function(){edit_file_name(file)};
li.append(a);
li.classList.add("d-inline-block", "text-truncate");
li.style.maxWidth = "75px";
//append elements
list_item.append(li);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment