예약 커맨드 비용 표시 복원
This commit is contained in:
@@ -65,6 +65,7 @@ export type CommandAvailability = {
|
||||
key: string;
|
||||
name: string;
|
||||
turnDurationText?: string;
|
||||
costText?: string;
|
||||
reqArg: boolean;
|
||||
status: 'available' | 'blocked' | 'needsInput' | 'unknown';
|
||||
possible: boolean;
|
||||
|
||||
@@ -6,6 +6,7 @@ type CommandAvailability = {
|
||||
key: string;
|
||||
name: string;
|
||||
turnDurationText?: string;
|
||||
costText?: string;
|
||||
reqArg: boolean;
|
||||
status: 'available' | 'blocked' | 'needsInput' | 'unknown';
|
||||
possible: boolean;
|
||||
@@ -165,6 +166,7 @@ const commandTitle = (command: CommandAvailability) =>
|
||||
<small v-if="command.turnDurationText" class="command-duration">
|
||||
/{{ command.turnDurationText }}
|
||||
</small>
|
||||
<small v-if="command.costText" class="command-cost">{{ command.costText }}</small>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -255,6 +257,15 @@ const commandTitle = (command: CommandAvailability) =>
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.command-cost {
|
||||
display: block;
|
||||
color: #f3d58b;
|
||||
font-size: 0.875em;
|
||||
font-weight: 400;
|
||||
line-height: 1.1;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.empty {
|
||||
color: rgba(232, 221, 196, 0.6);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user