Skip to content

Commit

Permalink
fixes age centering
Browse files Browse the repository at this point in the history
  • Loading branch information
Corvette653 committed Jan 23, 2024
1 parent 08e6725 commit b4abaa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/main/kotlin/frontend/animal/FollowedAnimalsView.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
package frontend.animal

import atlantafx.base.controls.Tile
import atlantafx.base.theme.Styles
import backend.map.Vector
import backend.model.Animal
import frontend.animal.FollowedAnimalsViewModel.FollowedAnimal
import frontend.components.View
import frontend.components.readonlyColumn
import kotlinx.coroutines.flow.Flow
import frontend.components.card
import javafx.scene.text.Text
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import tornadofx.*
Expand All @@ -20,7 +15,7 @@ class FollowedAnimalsView(
satietyEnergy: Int,
followedIds: MutableStateFlow<List<UUID>>,
animals: StateFlow<List<Pair<Vector, List<Animal>>>>,
) : View("Followd animals") {
) : View("Followed animals") {

override val viewModel = FollowedAnimalsViewModel(satietyEnergy, followedIds, animals)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class FollowedAnimalsViewModel(
}
),
age = VBox().apply {

alignment = javafx.geometry.Pos.CENTER
fontIcon(
when {
animal.isDead -> Material2SharpMZ.WIFI_OFF
Expand Down

0 comments on commit b4abaa9

Please sign in to comment.