From 120747c060a3e30d0f8191b604d09c6131dd503e Mon Sep 17 00:00:00 2001 From: leewyatt Date: Wed, 10 Jul 2024 00:09:12 +0900 Subject: [PATCH] fix: Correct incomplete image display in Blogs list Update UI in mobile blogs category page;Added a new style class "blogs-category-page" to the MobileBlogsCategoryPage.java. Also updated mobile.css to alter the avatar type from CIRCLE to PLAIN in the list view of the blogs category page for a more consistent user interface. --- .../mobile/pages/category/MobileBlogsCategoryPage.java | 1 + .../src/main/resources/com/dlsc/jfxcentral2/mobile/mobile.css | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/category/MobileBlogsCategoryPage.java b/mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/category/MobileBlogsCategoryPage.java index b666b6cc..96b46ef8 100644 --- a/mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/category/MobileBlogsCategoryPage.java +++ b/mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/category/MobileBlogsCategoryPage.java @@ -19,6 +19,7 @@ public class MobileBlogsCategoryPage extends MobileCategoryPageBase { public MobileBlogsCategoryPage(ObjectProperty size) { super(size); + getStyleClass().add("blogs-category-page"); } @Override diff --git a/mobile/src/main/resources/com/dlsc/jfxcentral2/mobile/mobile.css b/mobile/src/main/resources/com/dlsc/jfxcentral2/mobile/mobile.css index 4923dca0..edb6004f 100644 --- a/mobile/src/main/resources/com/dlsc/jfxcentral2/mobile/mobile.css +++ b/mobile/src/main/resources/com/dlsc/jfxcentral2/mobile/mobile.css @@ -850,6 +850,10 @@ -fx-avatar-type: CIRCLE; } +.blogs-category-page .list-view .model-list-cell .avatar-view { + -fx-avatar-type: PLAIN; +} + /** ---------------------------------- * MobileBlogOverviewBox */