Commit Graph

6 Commits

Author SHA1 Message Date
Lephenixnoir 2317e973d4
a small refactor for less stateful UIs 2023-11-02 22:48:30 +01:00
Lephenixnoir ece78efd9c
support multiple connections to the worker
Also removes the IRCClient message-passing-style API since the service
worker will mutualize connections and thus interpret stuff like
"connect" differently.

This is getting messy, there is a real need to refactor and extend the
"IRC client state" so that

1. There is less state in the shoutbox page, instead more should come
   from the IRC client state (which updates pretty frequently)
2. The protocol is cleaner

Because currently if you disconnect from one page the others don't
necessarily show the proper tabs, etc.
2023-09-26 21:07:40 +02:00
Lephenixnoir f20e40a9d5
more style code/markdown formatting
* More room pseudo pseudos when the screen is large enough
* Improve header behavior when screen is small: force ellipsis on
  channel description, keep buttons visible, allow multiple rows if
  buttons themselves don't fit
2023-07-29 13:34:51 +02:00
Lephenixnoir 4e3118c779
more style details (#2 follow-up)
* Standalone page is completely independent from v5
* Update widget.html to match index.html
* Change the message input from .message to .message-input to avoid
  collision with styles for actual div.message lines
* Make sure message input always takes the full page width
* Don't use IDs as they would collide with v5 templates
* Shorter padding specification on bottom form
* Add autocomplete="off" so browser doesn't remember previous messages
* Remove useless name attributes in message form
2023-07-29 00:11:27 +02:00
Lephenixnoir ca3730b64e
minor style improvements (inspired by gamja) 2023-07-13 16:29:20 +02:00
Lephenixnoir d7e929000f
meta: add HTML widget 2023-06-27 22:18:23 +02:00