Skip to content

Commit 697bcc6

Browse files
committed
BotC: Smaller assign characters button
1 parent e2f0e76 commit 697bcc6

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

src/app/botc/blood-on-the-clocktower.tsx

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import { shuffle } from 'utils/array';
2626
import DrawCharacters from './draw-characters';
2727
import { cn } from 'utils/class-names';
2828
import NightOrderPreview from './night-order-preview';
29+
import ActionIcon from 'components/input/action-icon';
30+
import Tooltip from 'components/tooltip';
2931

3032
export const metadata: Metadata = {
3133
title: 'Blood on the Clocktower',
@@ -224,7 +226,7 @@ const BloodOnTheClocktowerElement = () => {
224226
/>
225227
{isCustomEdition && (
226228
<div className='translate-y-1.5'>
227-
<Button
229+
<ActionIcon
228230
onClick={() => {
229231
if (confirm(`Do you want to remove '${edition.name}'?`)) {
230232
removeCustomScript(edition.id);
@@ -237,8 +239,7 @@ const BloodOnTheClocktowerElement = () => {
237239
}}
238240
>
239241
<IconTrash />
240-
Remove
241-
</Button>
242+
</ActionIcon>
242243
</div>
243244
)}
244245
</div>
@@ -426,15 +427,20 @@ const BloodOnTheClocktowerElement = () => {
426427
<Modal
427428
title='Draw characters'
428429
target={
429-
<Button
430-
onClick={() => {
431-
setSelectedCharacters(
432-
gameState.players.map((player) => player.characterId),
433-
);
434-
}}
430+
<Tooltip
431+
text='Starts at "First" and goes clockwise'
432+
position='top'
435433
>
436-
Assign characters (starts at "First" and goes clockwise)
437-
</Button>
434+
<Button
435+
onClick={() => {
436+
setSelectedCharacters(
437+
gameState.players.map((player) => player.characterId),
438+
);
439+
}}
440+
>
441+
Assign characters
442+
</Button>
443+
</Tooltip>
438444
}
439445
bgColor={drawCharactersBgColor}
440446
hideBackground

0 commit comments

Comments
 (0)