I choosed Table of files in Manage display and I uploaded files

There's no point to have file size in two places. Since, there is a column Size.

But, Next to the title file size appears.

I have attached the screenshot

CommentFileSizeAuthor
#3 2754381#2.png28.79 KBphileas75
check_size.png53.9 KBAaron23
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Aaron23 created an issue. See original summary.

phileas75’s picture

Assigned: Unassigned » phileas75
phileas75’s picture

Assigned: phileas75 » Unassigned
FileSize
28.79 KB

I test this with core version 8.2.x. It works fine with bartik theme.
Could you give us more details to reproduce ?

It looks like more than a contrib theme issue than file system issue.

2754381#2

Aaron23’s picture

Yes...I'm Using Bootstrap sub theme (Bootstrap LESS)..I'm closing this issue. I will change the issue to bootstrap

Aaron23’s picture

Project: Drupal core » Bootstrap
Version: 8.1.3 » 8.x-3.0-beta3
Component: file system » Code
mstrelan’s picture

Title: Remove the File Size which appears twice » File size appears twice when using Table of files formatter
Issue tags: -file upload
mstrelan’s picture

Version: 8.x-3.0-beta3 » 8.x-3.x-dev

I'm not sure the best way to fix this, but one approach that I'm using is as follows

  1. Create a new template file-link--plain.html.twig which doesn't include the file size
  2. Implement hook_preprocess_table__file_formatter_table(), loop through each row and change the '#theme' of each file in the first cell to 'file_link__plain'
markhalliwell’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still happening? If so, patches are welcome.

markhalliwell’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

No response

Mike_Kreuzer’s picture

This is still an issue in Bootstrap 3.20.0/Drupal 8.7.7

Work around's to delete the file size spans in file-link.html.twig - which deletes them everywhere

Do you want me to raise a new issue?