fix about page text not displaying properly
This commit is contained in:
parent
a3fa9590d1
commit
87737a5261
4 changed files with 5 additions and 6 deletions
|
@ -1,4 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="EntryPointsManager">
|
||||
<list size="1">
|
||||
|
|
|
@ -89,10 +89,10 @@ class ImageTagsEntryControl(private val image: AnalyzedImage) : HBox() {
|
|||
}
|
||||
setImage(image)
|
||||
if (image.hasError()) {
|
||||
setText(listOf(image.errorMessage()))
|
||||
setTags(listOf(image.errorMessage()))
|
||||
metadataVbox.isVisible = false
|
||||
} else {
|
||||
setText(image.tags())
|
||||
setTags(image.tags())
|
||||
setMetadata()
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ class ImageTagsEntryControl(private val image: AnalyzedImage) : HBox() {
|
|||
*
|
||||
* @param predictions The prediction list.
|
||||
*/
|
||||
private fun setText(predictions: List<String>) {
|
||||
private fun setTags(predictions: List<String>) {
|
||||
predictedImageTags.text = predictions.joinToString { it }
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
fx:controller="dev.nuculabs.imagetagger.ui.pages.AboutPage"
|
||||
stylesheets="@about-page.css"
|
||||
>
|
||||
<VBox prefHeight="250.0" maxWidth="350" spacing="10">
|
||||
<VBox prefHeight="350.0" maxWidth="350" spacing="10">
|
||||
<padding>
|
||||
<Insets top="25" bottom="25" right="15" left="15"/>
|
||||
</padding>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
plugins {
|
||||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
|
||||
}
|
||||
rootProject.name = "ImageTagger-Solution"
|
||||
rootProject.name = "ImageTagger"
|
||||
include("img-ui")
|
||||
include("img-ai")
|
||||
include("img-core")
|
||||
|
|
Loading…
Reference in a new issue