style(file-input): improve file-input__list

This commit is contained in:
Gregor Kleen 2020-11-14 12:29:07 +01:00
parent eb3495acff
commit 34cd393e61
2 changed files with 27 additions and 21 deletions

View File

@ -225,11 +225,15 @@ option
margin: 10px 0 margin: 10px 0
color: var(--color-fontsec) color: var(--color-fontsec)
.file-input__list-wrapper
overflow: auto
max-height: 75vh
max-width: 30vw
.file-input__list .file-input__list
margin-left: 40px margin-left: 40px
margin-top: 10px margin-top: 10px
font-weight: 600 font-weight: 600
max-width: 25vw
tr:last-child td tr:last-child td
padding-bottom: 0 padding-bottom: 0
@ -237,6 +241,7 @@ option
.file-input__list-item .file-input__list-item
font-family: var(--font-monospace) font-family: var(--font-monospace)
font-size: 15px font-size: 15px
word-break: break-all
// PREVIOUSLY UPLOADED FILES // PREVIOUSLY UPLOADED FILES

View File

@ -4,7 +4,8 @@ $maybe ident <- identSecret
<input type=hidden name=#{fieldName} id=#{fieldId}--ident value=#{ident}> <input type=hidden name=#{fieldName} id=#{fieldId}--ident value=#{ident}>
$if not (null fileInfos) $if not (null fileInfos)
<table .file-input__list .table .table--narrow .table--striped .table--hover .table--condensed> <div .file-input__list-wrapper>
<table .file-input__list .table .table--striped .table--hover .table--condensed>
<colgroup> <colgroup>
<col .checkbox-only> <col .checkbox-only>
<col .tooltip-only> <col .tooltip-only>
@ -14,8 +15,8 @@ $if not (null fileInfos)
<th .table__th> <th .table__th>
<th .table__th colspan=2> <th .table__th colspan=2>
_{MsgPreviouslyUploadedInfo} _{MsgPreviouslyUploadedInfo}
$forall FileUploadInfo{..} <- fileInfos
<tbody> <tbody>
$forall FileUploadInfo{..} <- fileInfos
<tr> <tr>
<td .table__td> <td .table__td>
<input type=checkbox id=#{fuiHtmlId} name=#{fieldName} :fuiChecked:checked value=#{review _FileTitle fuiTitle} :fuiForced:readonly> <input type=checkbox id=#{fuiHtmlId} name=#{fieldName} :fuiChecked:checked value=#{review _FileTitle fuiTitle} :fuiForced:readonly>