fix file view
This commit is contained in:
parent
8eea0d5bbc
commit
da18f9eb14
1 changed files with 22 additions and 9 deletions
|
@ -274,7 +274,8 @@ a:hover {
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-o-user-select: none;
|
-o-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
display: flex;
|
display: inline-block;
|
||||||
|
text-align: right;
|
||||||
float: left;
|
float: left;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-right: 1ch;
|
margin-right: 1ch;
|
||||||
|
@ -284,23 +285,35 @@ a:hover {
|
||||||
background: var(--light-gray);
|
background: var(--light-gray);
|
||||||
display: table;
|
display: table;
|
||||||
padding: 0.5rem
|
padding: 0.5rem
|
||||||
width: 100%;
|
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
}
|
overflow-x: auto;
|
||||||
|
|
||||||
tr {
|
|
||||||
display:flex;
|
|
||||||
flex-direction: row;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-content {
|
.file-content {
|
||||||
background: var(--light-gray);
|
background: var(--light-gray);
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
display: inline-block;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@supports (display: flex) {
|
||||||
|
.file-wrapper {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 750px;
|
||||||
|
}
|
||||||
|
.file-wrapper tr {
|
||||||
|
display:flex;
|
||||||
|
flex-direction: row;
|
||||||
|
width: 80vw;
|
||||||
|
max-width: 750px;
|
||||||
|
}
|
||||||
|
.line-numbers {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.file-content {
|
||||||
|
display: iniline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
.diff-type {
|
.diff-type {
|
||||||
color: var(--gray);
|
color: var(--gray);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue