mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
browse: Minor changes to improve icon positioning in template
Also make sure column header cells don't wrap
This commit is contained in:
parent
1af7865e6c
commit
62b210b544
1 changed files with 13 additions and 4 deletions
|
@ -182,6 +182,7 @@ th {
|
|||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
font-size: 16px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
th a {
|
||||
|
@ -198,8 +199,6 @@ td {
|
|||
|
||||
td:first-child {
|
||||
width: 50%;
|
||||
overflow-wrap: break-word;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
th:last-child,
|
||||
|
@ -207,6 +206,16 @@ td:last-child {
|
|||
text-align: right;
|
||||
}
|
||||
|
||||
td:first-child svg {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
td .name {
|
||||
margin-left: 1.75em;
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 40px 20px;
|
||||
font-size: 12px;
|
||||
|
@ -335,13 +344,13 @@ footer {
|
|||
{{range .Items}}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{.URL}}" class="name">
|
||||
<a href="{{.URL}}">
|
||||
{{if .IsDir}}
|
||||
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 35.678803 28.527945"><use xlink:href="#folder"></use></svg>
|
||||
{{else}}
|
||||
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 26.604381 29.144726"><use xlink:href="#file"></use></svg>
|
||||
{{end}}
|
||||
{{.Name}}
|
||||
<span class="name">{{.Name}}</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>{{.HumanSize}}</td>
|
||||
|
|
Loading…
Reference in a new issue