mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 21:43:04 +00:00
79597: Add input to toggle thumbnail max-width
This commit is contained in:
@@ -5,7 +5,7 @@ import { hasValue } from '../shared/empty.util';
|
||||
/**
|
||||
* This component renders a given Bitstream as a thumbnail.
|
||||
* One input parameter of type Bitstream is expected.
|
||||
* If no Bitstream is provided, a holderjs image will be rendered instead.
|
||||
* If no Bitstream is provided, a HTML placeholder will be rendered instead.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-thumbnail',
|
||||
@@ -39,6 +39,11 @@ export class ThumbnailComponent implements OnInit {
|
||||
*/
|
||||
@Input() placeholder? = 'thumbnail.default.placeholder';
|
||||
|
||||
/**
|
||||
* Limit thumbnail width to --ds-thumbnail-max-width
|
||||
*/
|
||||
@Input() limitWidth? = true;
|
||||
|
||||
/**
|
||||
* Initialize the thumbnail.
|
||||
* Use a default image if no actual image is available.
|
||||
|
Reference in New Issue
Block a user