Git Product home page Git Product logo

Comments (2)

jtdaugherty avatar jtdaugherty commented on August 23, 2024

Thanks for this suggestion!

I thought about taking this approach when I first implemented the message rendering logic. This approach can work really well as long as the user names are relatively short. However, it results in a lot of wasted space when user names get long, and Mattermost and Matterhorn support displaying users by their full names and nicknames as well. That means that taking this approach will lead to the "column" of user names being potentially 30 terminal cells wide or more, and all it takes is one user in the conversation to result in a layout where the message text has very little room to get wrapped in. That, combined with the fact that many users want to run Matterhorn in a relatively narrow terminal window, means that I am not confident that this would be an overall usability improvement. I'm sorry to say that, and I know that doesn't help much with the indentation, but I wanted to give that context.

from matterhorn.

nteodosio avatar nteodosio commented on August 23, 2024

Thanks for sharing your thoughts.

I believe the issue you describe is similar to long channel names. Would it be viable to solve it likewise, namely with a userNameWidth variable?

from matterhorn.

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.