-
-
Notifications
You must be signed in to change notification settings - Fork 65
feat: placeholder in a new chat #765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deployed to https://msg-adamant-pr-765.surge.sh 🚀 |
It seems like the only thing left to do is to fix this weird bug with scrollbar, for now I have absolutely no idea why this happens and how to fix this little thing even though I've spent hours on trying to discover that. If you have any suggestions - I'd be highly greatful for them because I consider that bug annoying and worth of being fixed unless Alexey (@adamant-al) tells the opposite and desides that this bug is not a priority right now. |
@skranee |
A draft for now |
Regarding the bug, it could be separated as another task. |
@S-FrontendDev @bludnic |
@@ -10,13 +10,16 @@ | |||
<v-progress-circular | |||
v-show="loading" | |||
indeterminate | |||
color="primary" | |||
size="24" | |||
:class="[classes.spinner, !messages.length ? `${classes.spinner}_no-messages` : '']" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it not object?
:class="{ [classes.spinner]: true, [${classes.spinner}_no-messages`]: !messages.length }"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just another way of setting class names, I think it's more a matter of taste
const classes = [ | ||
`${className}__form`, | ||
{ | ||
[`${className}__form--is-active`]: !!message.value | ||
} | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not right way to use classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not? they're used as an array, seems fine to me
<div :class="classes">
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd agree if it they were used separately like :class="classes.form"
or somethings like that
set: setEmojiPickerOpen | ||
}) | ||
const placeholder = computed(() => props.label ?? t('chats.type_a_message')) | ||
const isDesktopDevice = computed(() => !isMobile()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it's not computedable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not?
Lmk if you have any suggestions guys
https://trello.com/c/ukeJHNFi/