panel icon indicating copy to clipboard operation
panel copied to clipboard

ChatInterface Buttons should flow below input when window width is small

Open MarcSkovMadsen opened this issue 1 month ago • 2 comments

The ChatInterface reference example from https://github.com/panel-extensions/panel-splitjs is not really useful because the TextInput + Buttons become way too wide when the window is not wide.

Please flow the Buttons below the TextInput when the window is not wide.

Image
import panel as pn
from panel_splitjs import Split

pn.extension()

chat = pn.chat.ChatInterface(sizing_mode="stretch_both")
output = pn.Column("# Output Area")

split = Split(
    chat,
    output,
    collapsed=None,  # Both panels visible
    expanded_sizes=(50, 50),
    show_buttons=True,
    min_size=(300, 300),  # Minimum 300px for each panel,
    sizing_mode="stretch_both"
)

split.servable()

MarcSkovMadsen avatar Nov 23 '25 13:11 MarcSkovMadsen

I think the better UI/UX would be collapse the button to a burger icon, which panel-material-ui ChatInterface does.

ahuang11 avatar Nov 25 '25 16:11 ahuang11

At this point we are probably going to halt development on existing components and put all efforts into ensuring the transition to panel-material-ui is smooth.

philippjfr avatar Nov 25 '25 16:11 philippjfr