Browse Source

Tweak file list on narrow screen

master
Gerben 4 years ago
parent
commit
3dfe82a07e
2 changed files with 9 additions and 2 deletions
  1. +7
    -0
      public/custom-style.css
  2. +2
    -2
      templates/repo/view_list.tmpl

+ 7
- 0
public/custom-style.css View File

@@ -93,3 +93,10 @@ details:not([open]) > summary.ui.top.attached.header:hover {
.ui.labeled.button > .label {
padding: .78571429em 1.5em .78571429em; /* same padding as the button */
}


.clearfix::after {
content: " ";
display: table;
clear: both;
}

+ 2
- 2
templates/repo/view_list.tmpl View File

@@ -9,7 +9,7 @@
{{ $collapseList := and .ReadmeExist (not .HasParentPath)}}
<details {{if not $collapseList}}open{{end}}>
<summary class="ui top attached header">
<h4 style="display: inline;">
<h4 style="display: inline;" class="clearfix">
{{if $collapseList}}Contents of{{end}}
{{ $n := len .TreeNames}}
{{ $l := Subtract $n 1}}
@@ -34,7 +34,7 @@
</div>
</h4>
</summary>
<table id="repo-files-table" class="ui single line attached table">
<table id="repo-files-table" class="ui single line attached unstackable table">
<tbody>
{{if .HasParentPath}}
<tr class="has-parent">


Loading…
Cancel
Save