Ajaxy / telegram-tt

Telegram Web A, GPL v3
https://web.telegram.org/a
GNU General Public License v3.0
2.33k stars 495 forks source link

add some options to improve customization? #258

Open ItzSelenux opened 1 year ago

ItzSelenux commented 1 year ago

testing with css, i thing is not hard to implement some options to have a better Telegram A

as the name says, toggle the chat to be centered or use all window

modified CSS with centered chat disabled:

.MessageList .messages-container { width: 100%; max-width: 100%; min-height: 100%; margin: 0 auto; display: flex; justify-content: flex-end; flex-direction: column; padding: 1rem 1rem 0 1.125rem; }

#MiddleColumn .middle-column-footer { width: 100%; max-width: 100%; padding: 0 1rem; position: relative; display: flex; align-items: flex-end; z-index: var(--z-middle-footer); transform: translate3d(0, 0, 0); transition: top 200ms,transform var(--layer-transition); }

modified CSS:

`

LeftColumn

{ --left-column-min-width: 0%; --left-column-max-width: 100%; width: 33vw; min-width: var(--left-column-min-width); max-width: var(--left-column-max-width); height: 100%; overflow: hidden; position: relative; background-color: var(--color-background); } `

that's all, I hope you like these suggestions :smiley: