-
Notifications
You must be signed in to change notification settings - Fork 436
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
style(TopBar): fit two-lines with normal line-height #12851
Conversation
Can you have rooms and descriptions with q, p and y ? :P |
They're not clipped at my machine anyway 🙈 |
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.
Looks good, letters like p y q are not cropped. No side effects on top bar in call.
da5fc1a
to
a9a3c00
Compare
src/components/TopBar/TopBar.vue
Outdated
@@ -358,6 +359,7 @@ export default { | |||
text-overflow: ellipsis; | |||
} | |||
.description { | |||
font-size: var(--font-size-small, 13px); |
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.
Shouldn't the fallback here be the --default-font-size?
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.
a9a3c00
to
52428e9
Compare
…tion font size Signed-off-by: Maksim Sukharev <[email protected]>
52428e9
to
fc30a70
Compare
@@ -303,17 +303,21 @@ export default { | |||
|
|||
<style lang="scss" scoped> | |||
.top-bar { | |||
--border-width: 1px; | |||
// hardcoded 1.5 value of line-height for compatibility with older versions | |||
--text-height: calc(1.5 * (var(--default-font-size) + var(--font-size-small, 15px))); |
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 default small size to 15px? Do we want to backport it to 29?
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.
Font size shouldn't change for Desktop client against 29, am I right?
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 will use server styles required for the current Talk version.
Otherwise it's more painful and we would need support not only different backend versions but also styles on frontend
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.
Please adjust in your follow up, when possible. I'm not getting it fully still 🤔
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.
Was 15px added here only for the Desktop client?
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.
We adjusted in libraries like @nextcloud/vue
because it is used on multiple versions.
Did we do it on Talk?
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.
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.
This PR is not backported and adapts to new styles and variables, which is necessary for Talk web on 30 🤔
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 meant he iconSize, which depends on server styles and not the Talk version
42e9191#diff-841f2c9a1004d8fafe1e1f6fe44412b062860ea277a4ddc071068f7f2a162e7dR156-R157
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 better to get it from variable anyway. Same as with other constant values in styles.
☑️ Resolves
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🏁 Checklist