Skip to content

[Bug]: Chat input not being pushed to bottom of page #1971

@SamEdwardes

Description

@SamEdwardes

Component

UI (ui.*)

Severity

P3 - Low (minor inconvenience)

Shiny Version

1.4.0

Python Version

3.13.0

Minimal Reproducible Example

from shiny import ui, App

app_ui = ui.page_fixed(
    ui.chat_ui(id="chat", messages=["Welcome!"]),
    fillable=True,
    fillable_mobile=True,
)


def server(input):
    chat = ui.Chat(id="chat")


app = App(app_ui, server)

Behavior

The chat input stays at the top of the browser window, even when using fillable=True.

Image

The example is taken directly from the docs: https://shiny.posit.co/py/docs/genai-chatbots.html#fill

Sidenote: the example code is missing a comma in ui.page_fixed.

I would expect the chat input to be force to the bottom of the window:

Image

Error Messages (if any)

Environment

~/tmp/shiny-chat-reprex on  main [?] took 1m43s
❯ uv pip list
Package           Version
----------------- -------
anyio             4.9.0
appdirs           1.4.4
asgiref           3.8.1
click             8.1.8
h11               0.14.0
htmltools         0.6.0
idna              3.10
linkify-it-py     2.0.3
markdown-it-py    3.0.0
mdit-py-plugins   0.4.2
mdurl             0.1.2
narwhals          1.34.1
orjson            3.10.16
packaging         24.2
prompt-toolkit    3.0.50
python-multipart  0.0.20
questionary       2.1.0
setuptools        78.1.0
shiny             1.4.0
sniffio           1.3.1
starlette         0.46.1
typing-extensions 4.13.2
uc-micro-py       1.0.3
uvicorn           0.34.0
watchfiles        1.0.5
wcwidth           0.2.13
websockets        15.0.1


~/tmp/shiny-chat-reprex on  main [?]
❯ uv run python --version
Python 3.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions