Skip to content
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

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

Antreesy
Copy link
Contributor

@Antreesy Antreesy commented Jul 30, 2024

☑️ Resolves

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

🏚️ Before (51px) 🏡 After (51px)
image image
image image

🏁 Checklist

  • 🌏 Tested with Chrome, Firefox and Safari or should not be risky to browser differences
  • 🖥️ Tested with Desktop client or should not be risky for it
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

@nickvergessen
Copy link
Member

Can you have rooms and descriptions with q, p and y ? :P

@Antreesy
Copy link
Contributor Author

Can you have rooms and descriptions with q, p and y ? :P

They're not clipped at my machine anyway 🙈

Copy link
Contributor

@DorraJaouad DorraJaouad left a 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.

src/components/TopBar/TopBar.vue Outdated Show resolved Hide resolved
@@ -358,6 +359,7 @@ export default {
text-overflow: ellipsis;
}
.description {
font-size: var(--font-size-small, 13px);
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. adjusted. Here's the diff from stable29:

image

Header is thinner now by 7px, but still looks decent (and only desktop with older versions will be affected)

@Antreesy Antreesy enabled auto-merge August 1, 2024 12:05
@Antreesy Antreesy merged commit 6e5926b into main Aug 1, 2024
46 checks passed
@Antreesy Antreesy deleted the fix/12800/two-lines-topbar branch August 1, 2024 12:07
@@ -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)));
Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor Author

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 🤔

Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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 🤔

Copy link
Contributor Author

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

Copy link
Contributor

@ShGKme ShGKme Aug 4, 2024

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.

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

Successfully merging this pull request may close these issues.

5 participants