Show file content for non-binary files
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
.inspect-details {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1.618fr 2rem 1fr;
|
||||
grid-template-columns: 1.618fr 3rem 1fr;
|
||||
|
||||
section {
|
||||
border-top: 1px solid $light-grey-2;
|
||||
@@ -58,17 +58,22 @@
|
||||
|
||||
&.meta {
|
||||
grid-column-start: 3;
|
||||
|
||||
dl {
|
||||
margin: 0;
|
||||
|
||||
dt, dd {
|
||||
display: block;
|
||||
}
|
||||
dt {
|
||||
font-size: 0.76rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: $dark-grey-3;
|
||||
margin-bottom: 0.5rem;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
dd {
|
||||
margin: 0 0 1.5rem 0;
|
||||
margin: 0 0 1.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,3 +20,4 @@ body {
|
||||
@import "components/categories-nav";
|
||||
@import "components/directory-listing";
|
||||
@import "components/item-icon";
|
||||
@import "components/file-preview";
|
||||
|
||||
8
app/styles/components/_file-preview.scss
Normal file
8
app/styles/components/_file-preview.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
.file-preview {
|
||||
|
||||
code {
|
||||
word-break: break-all;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user