Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/gradle/bouncycastleVersion-1.80
Browse files Browse the repository at this point in the history
  • Loading branch information
zapek authored Jan 17, 2025
2 parents eb34337 + 4457f8e commit cd8e145
Show file tree
Hide file tree
Showing 11 changed files with 750 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2023 by David Gerber - https://zapek.com
* Copyright (c) 2019-2025 by David Gerber - https://zapek.com
*
* This file is part of Xeres.
*
Expand All @@ -17,21 +17,22 @@
* along with Xeres. If not, see <http://www.gnu.org/licenses/>.
*/

package io.xeres.ui.custom;
package io.xeres.ui.controller.chat;

import io.xeres.ui.support.chat.ChatLine;
import io.xeres.ui.support.chat.ColorGenerator;
import io.xeres.ui.support.contentline.Content;
import javafx.css.PseudoClass;
import javafx.scene.control.Label;
import javafx.scene.shape.Path;
import javafx.scene.text.TextFlow;
import org.fxmisc.flowless.Cell;

import java.util.List;

import static io.xeres.ui.support.util.DateUtils.TIME_DISPLAY;

public class ChatListCell implements Cell<ChatLine, TextFlow>
class ChatListCell implements Cell<ChatLine, TextFlow>
{
private static final PseudoClass passivePseudoClass = PseudoClass.getPseudoClass("passive");

Expand Down Expand Up @@ -67,7 +68,7 @@ public TextFlow getNode()
@Override
public boolean isReusable()
{
return !isRich;
return !isRich && !(content.getChildren().getLast() instanceof Path); // Do not reuse rich content AND selected content
}

@Override
Expand Down
Loading

0 comments on commit cd8e145

Please sign in to comment.