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

"Add mail account" button looks wonky #8714

Open
auroraanna opened this issue Aug 10, 2023 · 7 comments
Open

"Add mail account" button looks wonky #8714

auroraanna opened this issue Aug 10, 2023 · 7 comments

Comments

@auroraanna
Copy link
Contributor

Steps to reproduce

  1. Open the app
  2. Setup and account
  3. Open the navigation on the left
  4. Click "Mail settings"

Expected behavior

  • The "Add mail account" should the the full width that is available inside it's container like the other buttons in navigation.
  • The "Add mail account" button icon and text should be aligned left or center like the other buttons.

Actual behavior

The "Add mail account" button is not full width and it's icon and text and not aligned left or center. The button's icon and text look like they're aligned right but actually there is extra padding on the left:

.app-settings-button.button.primary.new-button[data-v-16724163] {
    color: var(--color-primary-element-text);
    padding-left: 34px;
    gap: 4px;
    width: fit-content;
}

image

Mail app version

3.4.0-beta.1

Mailserver or service

Mailcow (mail server)

Operating system

NixOS 23.11.2023080 (Linux)

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database

MariaDB

Additional info

No response

@auroraanna
Copy link
Contributor Author

I tried to properly do the buttons in the settings according to the documentation with NcButton but the alignment property just doesn't work, even though my nextcloud/vue is on 7.12.2. I don't wanna write legacy CSS when I could be using that property.

@GretaD
Copy link
Contributor

GretaD commented Aug 14, 2023

'Add mail account' is a router link, not an NcButton, I dont think you can change the router link to NcButton because most probably it will not work, unless we find a way with :href.

That styling for that button is most probably a leftover, because you can see that theres a comment that says: This style will be removed...

//this style will be removed after we migrate also the 'add mail account' to material design
padding-left: 34px;
gap: 4px;
width: fit-content;

if you remove that padding and you change the width to 100%, you'll have the same design as the other buttons. Icon+text is left aligned.

@auroraanna
Copy link
Contributor Author

'Add mail account' is a router link, not an NcButton, I dont think you can change the router link to NcButton because most probably it will not work, unless we find a way with :href.

NcButton has a to property which makes it a router-link

@GretaD
Copy link
Contributor

GretaD commented Aug 14, 2023

'Add mail account' is a router link, not an NcButton, I dont think you can change the router link to NcButton because most probably it will not work, unless we find a way with :href.

NcButton has a to property which makes it a router-link

ah, thats true, i missed that. If you wrote it on the template as NcButton and not as ButtonVue, i think that was the issue why it was not working for you, because: https://github.com/nextcloud/mail/blob/main/src/components/AppSettingsMenu.vue#L119

We can try together tomorrow.

@starmanager01
Copy link

Here I have a notice. There is no way to delete the mail account.

Greetings.

Klaus

@GretaD
Copy link
Contributor

GretaD commented Oct 16, 2023

@starmanager01 yes there is, is under the account action menu. See pic below
Screenshot from 2023-10-16 09-21-26

@starmanager01
Copy link

Hi, thank you. That was the hint. I like the E-mail program.

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

Successfully merging a pull request may close this issue.

3 participants