Fix thumbnail aspect ratios and missing thumbnails in All tab
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m7s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m7s
This commit is contained in:
parent
4bcd3efa11
commit
939af551dc
2 changed files with 2 additions and 2 deletions
|
|
@ -335,7 +335,7 @@ func (h *OnlyOfficeHandler) ListOfficeFiles(c *fiber.Ctx) error {
|
|||
var results []OfficeFile
|
||||
|
||||
checksums := make(map[string]string)
|
||||
rows, err := h.DB.Query("SELECT path, checksum FROM files WHERE checksum != '' AND is_trashed = 0")
|
||||
rows, err := h.DB.Query("SELECT path, checksum FROM files WHERE checksum IS NOT NULL AND checksum != '' AND IFNULL(is_trashed, 0) = 0")
|
||||
if err == nil {
|
||||
defer rows.Close()
|
||||
for rows.Next() {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export default function ThumbnailImage({ checksum, fallbackIcon, downloadToken,
|
|||
key={key}
|
||||
src={downloadToken ? `${api.getThumbnailUrl(checksum, downloadToken)}${errorCount > 0 ? `&t=${key}` : ''}` : ''}
|
||||
alt=""
|
||||
className={`object-contain ${docType ? 'w-full h-full object-cover mix-blend-multiply' : 'w-full h-full'}`}
|
||||
className={`object-contain ${docType ? 'w-full h-full mix-blend-multiply' : 'w-full h-full'}`}
|
||||
style={{ display: showFallback ? 'none' : 'block' }}
|
||||
onError={(e) => {
|
||||
if (errorCount < 20) {
|
||||
|
|
|
|||
Reference in a new issue