minimal width for loading skeleton directive adjusted
This commit is contained in:
@@ -24,7 +24,7 @@ export class SkTextDirective implements OnChanges {
|
||||
this.originalColor = el.style.color;
|
||||
|
||||
// measure natural width before blanking text
|
||||
const width = Math.min(Math.max(this.originalText.length * 7.5, 48), 280);
|
||||
const width = Math.min(Math.max(this.originalText.length * 7.5, 48), 60);
|
||||
const height = 20;
|
||||
this.renderer.setStyle(el, 'color', 'transparent');
|
||||
this.renderer.setStyle(el, 'background', 'linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%)');
|
||||
|
||||
Reference in New Issue
Block a user