mirror of https://github.com/coder/code-server.git
Fix file open overflow on Firefox
This commit is contained in:
parent
f05ce105e8
commit
a07d0c9c3d
|
@ -62,11 +62,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.file-area {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.dialog-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 0.2fr 0.8fr;
|
||||
|
@ -77,6 +72,12 @@
|
|||
font-size: 12px;
|
||||
}
|
||||
|
||||
.file-area {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
.dialog-entry {
|
||||
cursor: pointer;
|
||||
font-size: 1.2em;
|
||||
|
@ -92,9 +93,7 @@
|
|||
.dialog-entry-icon {
|
||||
width: 16px;
|
||||
height: 19px;
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
margin-bottom: -3px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
|
|
@ -167,10 +167,6 @@ class Dialog {
|
|||
navItems.appendChild(this.pathNode);
|
||||
this.root.appendChild(navItems);
|
||||
|
||||
const fileAreaNode = document.createElement("div");
|
||||
fileAreaNode.classList.add("file-area");
|
||||
fileAreaNode.classList.add("show-file-icons");
|
||||
|
||||
const headingsNode = document.createElement("div");
|
||||
headingsNode.className = "headings dialog-grid";
|
||||
["Name", "Size", "Last Modified"].forEach(e => {
|
||||
|
@ -178,10 +174,14 @@ class Dialog {
|
|||
header.innerText = e;
|
||||
headingsNode.appendChild(header);
|
||||
});
|
||||
this.root.appendChild(headingsNode);
|
||||
|
||||
const fileAreaNode = document.createElement("div");
|
||||
fileAreaNode.classList.add("file-area");
|
||||
fileAreaNode.classList.add("show-file-icons");
|
||||
|
||||
this.filesNode = document.createElement("div");
|
||||
this.filesNode.className = "files-list";
|
||||
fileAreaNode.appendChild(headingsNode);
|
||||
this.entryList = new ObjectTree<DialogEntry, string>(this.filesNode, {
|
||||
getHeight: (entry: DialogEntry): number => {
|
||||
return 20;
|
||||
|
|
Loading…
Reference in New Issue