Skip to content

Commit

Permalink
Fix direct messaging not working
Browse files Browse the repository at this point in the history
The avatar images are also properly centered.
  • Loading branch information
zapek committed Oct 24, 2023
1 parent 25c3671 commit a366756
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ui/src/main/java/io/xeres/ui/client/ProfileClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public Flux<Profile> findByLocationId(LocationId locationId)
{
return webClient.get()
.uri(uriBuilder -> uriBuilder
.path("/")
.path("")
.queryParam("locationId", locationId.toString())
.build())
.retrieve()
Expand Down
14 changes: 7 additions & 7 deletions ui/src/main/resources/view/messaging/messaging.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.*?>
<HBox prefHeight="600.0" prefWidth="400.0" minHeight="300.0" minWidth="300.0" styleClass="base-spacing" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1">
<HBox minHeight="300.0" minWidth="300.0" prefHeight="600.0" prefWidth="400.0" styleClass="base-spacing" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1">
<VBox fx:id="content" HBox.hgrow="ALWAYS">
<Label fx:id="notification" maxWidth="1.7976931348623157E308" VBox.vgrow="NEVER"/>
<TextField fx:id="send" promptText="%messaging.prompt" VBox.vgrow="NEVER">
Expand All @@ -34,13 +34,13 @@
</TextField>
</VBox>
<VBox HBox.hgrow="NEVER">
<HBox styleClass="imageview-avatar">
<ImageView fx:id="targetAvatar" fitHeight="128.0" fitWidth="128.0" pickOnBounds="true" preserveRatio="true"/>
</HBox>
<StackPane styleClass="imageview-avatar">
<ImageView fx:id="targetAvatar" fitHeight="128.0" fitWidth="128.0" pickOnBounds="true" preserveRatio="true" StackPane.alignment="CENTER"/>
</StackPane>
<Region VBox.vgrow="ALWAYS"/>
<HBox styleClass="imageview-avatar">
<ImageView fx:id="ownAvatar" fitHeight="128.0" fitWidth="128.0" pickOnBounds="true" preserveRatio="true"/>
</HBox>
<StackPane styleClass="imageview-avatar">
<ImageView fx:id="ownAvatar" fitHeight="128.0" fitWidth="128.0" pickOnBounds="true" preserveRatio="true" StackPane.alignment="CENTER"/>
</StackPane>
<HBox.margin>
<Insets left="8.0"/>
</HBox.margin>
Expand Down

0 comments on commit a366756

Please sign in to comment.