Remove "Copy" and "Open Raw" when viewing empty type files

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

When viewing empty type files, should we considering hiding the default actions:

  • Copy file contents
  • Open raw

image

Example: https://gitlab.com/sming-gitlab/sample-public-project/-/blob/master/download-files/empty_file

From a user perspective, it doesn't really makes sense to have these actions available for an empty file 🤔 In regards to the download button, I think it's okay to keep it around as it's still an actual file, so being able to download should be fine 👍

Edited Sep 22, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading