Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

chat: do not always show the input field #31

Open
strukturart opened this issue Dec 12, 2021 · 1 comment
Open

chat: do not always show the input field #31

strukturart opened this issue Dec 12, 2021 · 1 comment

Comments

@strukturart
Copy link

It is not necessary to display the input field if you do not want to write. it would suffice to show a bottom bar, where you could start writing with softLeft and softRigth to display options for a message.

  //bottom bar
  let bottom_bar = function (left, center, right) {
    document.querySelector("div#bottom-bar div#button-left").textContent = left;
    document.querySelector("div#bottom-bar div#button-center").textContent =
      center;
    document.querySelector("div#bottom-bar div#button-right").textContent =
      right;

    if (left == "" && center == "" && right == "") {
      document.querySelector("div#bottom-bar").style.display = "none";
    } else {
      document.querySelector("div#bottom-bar").style.display = "block";
    }
  };
@farooqkz
Copy link
Owner

What do others think?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants