Fix title position

This commit is contained in:
nicknase27 committed 2026-09-30 12:01:01 +02:00
1 parent d14b6c750c
commit 57a486f459
2 files changed
+3 -3

No files matched your search

+1 -2
View File
@@ -6,8 +6,7 @@ on:
- "v*"
env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: alway
jobs:
clippy:
name: clippy
+2 -1
View File
@@ -1,5 +1,6 @@
use crossterm::event::{Event, EventStream, KeyCode, KeyEvent, KeyEventKind, KeyModifiers};
use futures::{FutureExt, StreamExt};
use ratatui::layout::Alignment;
use ratatui::layout::Constraint::Percentage;
use ratatui::layout::HorizontalAlignment::Center;
use ratatui::style::Stylize;
@@ -235,7 +236,7 @@ impl App {
.block(Block::bordered().title(format!(
" PongRS | {} - {} ",
self.player_score, self.enemy_score
)))
)).title_alignment(Alignment::Center))
.x_bounds([X_BOUNDS.0, X_BOUNDS.1])
.y_bounds([Y_BOUNDS.0, Y_BOUNDS.1])
.marker(Marker::Block)