Repository navigation
Conversation
…e filename (#1088) The per-bitstream access-status badge ("Embargo until <date>") is rendered by ds-file-download-link right after the download link. The item Files list separates entries with a projected <br/> (FileSectionComponent.separator) that lands inside the link, so the badge wrapped onto the next visual line and ran straight into the following file's lock icon. Scope the custom theme's item-page file section so each file is block-level and the badge drops onto its own line directly under the filename: <lock> filename (size) Embargo until <date> Done via SCSS only (no template duplication); submission and process-detail, which reuse ds-file-download-link, keep their inline layout. Fixes dataquest-dev/dspace-customers#1088 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Drop the `display: block` on the access-status badge so it flows inline after the filename and only wraps onto its own line when it does not fit. Each file stays block-level, so a wrapped badge still cannot collide with the next file's lock icon. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes the embargo-badge position in the ZCU-PUB item view
(dataquest-dev/dspace-customers#1088).
Each file in the Files section is a
ds-file-download-linkthat renders thelock icon + filename, followed by the per-bitstream access-status badge
(
ds-access-status-badge→ "Embargo until<date>"). The Files list separatesentries with a projected
<br/>(FileSectionComponent.separator) that landsinside the link — so the badge wrapped onto the next visual line and ran
straight into the following file's lock icon.
Behaviour
Each file sits on its own line, and the embargo badge stays inline right after
the filename when it fits, dropping onto its own line under the filename only
when there isn't room. Either way the badge can no longer collide with the next
file's lock icon.
How
SCSS only, scoped to the custom theme's item-page file section — no template
duplication, so the base
file-sectiontemplate keeps propagating:ds-file-download-linkis made block-level (one file per line);<br/>separator is neutralised (block layout alreadybreaks between files, so it would otherwise force the badge onto its own line).
The badge keeps its default inline flow, so it stays next to the filename when
there's space and wraps underneath otherwise. Because each file is its own
block, a wrapped badge can't run into the next file.
Submission (
section-upload-file) andprocess-detail, which also reuseds-file-download-link, are not affected (the rule is scoped to:host ::ng-deep .file-section).Verification (local)
accessStatus/embargo REST endpoint), running in Docker.same line; long filenames wrap the badge onto the next line; the open file
shows no badge.
Fixes dataquest-dev/dspace-customers#1088
🤖 Generated with Claude Code