Code Monkey home page Code Monkey logo

message-chatgpt's People

Contributors

dorian25 avatar

Watchers

 avatar  avatar

message-chatgpt's Issues

Multiline Input Text

Problem

  • The user's message is written on ONLY one line, which makes it unreadable or very complicated to reread for long messages. Because of the <input> tag that does not allow to display a message on several lines.

Solution

  • Use of the <textarea> tag (for multi-line) + a javascript script to automatically adjust the textarea height.

The display of the time below the messages.

Problem

  • When you retrieve the hours or minutes, you get integers. If the integer < to 10, the display will be done with only one digit.

Example: instead of writing 13:04, it is written 13:4. Or instead of 08:02, it will be written 8:2.

Solution

  • add a '0' for values < 10

Better display of messages

Problem

  • Before the messages were hidden by the input field and you could not scroll to see them.

Solution

  • Now, a better arrangement of the elements (#chat-container and #chat-input) allows :
    • to not hide the messages anymore,
    • to be able to scroll correctly,
    • to add the messages from the bottom to the top,
    • to have the focus on the most recent message

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.