Add Levels to Properly Test Level Card
This commit is contained in:
1 parent
e86f500d8f
commit
88d2b6a546
5 files changed
+56
-11
No files matched your search
@@ -7,7 +7,7 @@
|
||||
<div class="other">
|
||||
<div class="creator">
|
||||
<span>by</span>
|
||||
<span>{{ creator() }}</span>
|
||||
<span>{{ creatorString() }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -22,7 +22,7 @@ $default_animation_duration: 0.2s;
|
||||
overflow: hidden;
|
||||
|
||||
section.information {
|
||||
width: 336px;
|
||||
width: calc(100% - 64px);
|
||||
padding: 12px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, input } from '@angular/core';
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'level-card',
|
||||
@@ -9,5 +9,7 @@ import { Component, input } from '@angular/core';
|
||||
export class LevelCard {
|
||||
artist = input.required<string>()
|
||||
trackName = input.required<string>()
|
||||
creator = input.required<string>()
|
||||
creator = input<string[]>([]);
|
||||
|
||||
creatorString = computed(() => this.creator().join(" & "));
|
||||
}
|
||||
Reference in new issue
Block a user