Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/app/playtest-export-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const renderToolbar: NonNullable<PlaytestPageProps['renderToolbar']> = ({
<ExportButton
model={model}
enableCocosExport
className="border-app-accent bg-app-accent text-app-on-accent hover:bg-app-accent-hover"
className="min-h-10 rounded-app-control bg-app-accent px-3 py-2 text-xs font-semibold text-app-on-accent hover:bg-app-accent-hover"
/>
)
} catch {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/entities/character/directions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('direction grid layouts', () => {
it('maps single, four-way, and eight-way assets to their display grids', () => {
expect(getDirectionGridLayout('single')).toEqual({ columns: 1, cells: ['east'] })
expect(getDirectionGridLayout('four-way')).toEqual({
columns: 2,
cells: ['north', 'south', 'west', 'east'],
columns: 3,
cells: [null, 'north', null, 'west', null, 'east', null, 'south', null],
})
expect(getDirectionGridLayout('eight-way')).toEqual({
columns: 3,
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/entities/character/directions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ const DIRECTION_PROFILES: Record<DirectionalMovement, DirectionProfile> = {

const DIRECTION_GRID_LAYOUTS: Record<DirectionalMovement, DirectionGridLayout> = {
single: { columns: 1, cells: ['east'] },
/** 四向也走九宫格:方位落在它本来的位置上,四角和中心空着,不挤成 2×2 方阵。 */
'four-way': {
columns: 2,
cells: ['north', 'south', 'west', 'east'],
columns: 3,
cells: [null, 'north', null, 'west', null, 'east', null, 'south', null],
},
'eight-way': {
columns: 3,
Expand Down
Loading
Loading