diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-04-07 22:23:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-07 22:23:12 -0700 |
| commit | b1493520eeae2d516b79e5c0289301b81d18f49c (patch) | |
| tree | 88cdf548d39a7c8b7750d1b30184b12294702728 /weed | |
| parent | 4dba102137921767e31d8aecda96656930c50b7d (diff) | |
| parent | dff63e9024579a18527ac7cdc8e7e8b37c797135 (diff) | |
| download | seaweedfs-b1493520eeae2d516b79e5c0289301b81d18f49c.tar.xz seaweedfs-b1493520eeae2d516b79e5c0289301b81d18f49c.zip | |
Merge pull request #2888 from blacktear23/filer-ui-bootstrap-style
[filer-ui]: Make operation buttons show when table row hovered
Diffstat (limited to 'weed')
| -rw-r--r-- | weed/server/filer_ui/filer.html | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html index a472416e9..40753e476 100644 --- a/weed/server/filer_ui/filer.html +++ b/weed/server/filer_ui/filer.html @@ -47,6 +47,18 @@ vertical-align: bottom; } + .table-hover > tbody > tr:hover > * > div.operations { + display: block; + } + + .table > tbody > tr { + height: 40px; + } + + div.operations { + display: none; + } + .footer { position: absolute; bottom: 0px; @@ -129,13 +141,13 @@ <td align="right" nowrap> {{ $entry.Timestamp.Format "2006-01-02 15:04" }} </td> - <td> - <div class="btn-group btn-group-xs pull-right" role="group"> - <label class="btn" onclick="handleRename('{{ $entry.Name }}', '{{ printpath $path "/" }}')"><img src="/seaweedfsstatic/images/rename-16.png" width="16" height="16"></label> + <td style="width:150px"> + <div class="btn-group btn-group-xs pull-right operations" role="group"> + <label class="btn" onclick="handleRename('{{ $entry.Name }}', '{{ printpath $path "/" }}')"><img src="/seaweedfsstatic/images/rename-16.png" width="14" height="14"></label> {{if $entry.IsDirectory}} - <label class="btn" onclick="handleDelete('{{ printpath $path "/" $entry.Name "/" }}')"><img src="/seaweedfsstatic/images/delete-16.png" width="16" height="16"></label> + <label class="btn" onclick="handleDelete('{{ printpath $path "/" $entry.Name "/" }}')"><img src="/seaweedfsstatic/images/delete-16.png" width="14" height="14"></label> {{else}} - <label class="btn" onclick="handleDelete('{{ printpath $path "/" $entry.Name }}')"><img src="/seaweedfsstatic/images/delete-16.png" width="16" height="16"></label> + <label class="btn" onclick="handleDelete('{{ printpath $path "/" $entry.Name }}')"><img src="/seaweedfsstatic/images/delete-16.png" width="14" height="14"></label> {{end}} </div> </td> |
