Code Monkey home page Code Monkey logo

Comments (8)

sceuick avatar sceuick commented on July 17, 2024 1

Alrighty, being deployed in a50730b.
There will be a data-bot={bot name}. It'll be empty if it's a user generated message.

from agnai.

sceuick avatar sceuick commented on July 17, 2024

Sure, I can add some do-nothing classes onto the chat messages.
I can't guarantee that the markup and such won't change over time and potentially break your custom css.

If you do come up with some nice alternate chat views, I'd happily consider supporting "chat themes" provided they're not too onerous to implement and maintain. Share a screenshot after you're done if you're comfortable doing so.

from agnai.

sceuick avatar sceuick commented on July 17, 2024

Would this suffice?:

image

from agnai.

sceuick avatar sceuick commented on July 17, 2024

Custom CSS saved onto the character profile, it would allow fancy stuff.

Can you elaborate on this? I'm not sure what exactly you mean. As in which page and which components you'd need identifiable.

from agnai.

notfood avatar notfood commented on July 17, 2024

Yeah, that works. I'd be able to change CSS with

div[data-sender="bot"] {}

Can you elaborate on this? I'm not sure what exactly you mean. As in which page and which components you'd need identifiable.

Custom CSS per character would allow creators to include CSS to style their bot responses without having to resort to external scripts. The pages that would need to be modified would be character editor, a custom CSS textbox and the character responses, that include something unique to the bot, like a short form of their ID or something small that can be referenced from the CSS. It's more of an idea to develop, not exactly a big part of the feature request here. I'm happy with the data-sender=bot, it does what I need.

from agnai.

sceuick avatar sceuick commented on July 17, 2024

Would you require this chat in the message as well?
I can do this by character name as you have more control over that.
data-bot={char.name}

from agnai.

notfood avatar notfood commented on July 17, 2024

That'd be ideal

from agnai.

sceuick avatar sceuick commented on July 17, 2024

Sure thing, I'll add it in the next release.

from agnai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.