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

Migaku Note Types does not have the correct max-width #57

Open
seulgiism opened this issue Jun 14, 2023 · 3 comments
Open

Migaku Note Types does not have the correct max-width #57

seulgiism opened this issue Jun 14, 2023 · 3 comments

Comments

@seulgiism
Copy link

seulgiism commented Jun 14, 2023

The Migaku Note Types do not have the correct width in Anki. If the user decide to edit the Migaku Note Type background color a slight protrusion can be seen next to the screenshot in the Migaku Card.

This can be fixed by changing the max-width from 650 to 647 in the migaku-card block.

.migaku-typeselect {
  position: relative;
  background: white;
  width: 90%;
  max-width: 647px;
  margin: 20px auto 50px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  text-align: left;
}

See screenshots of before and after.

max-width with 650:

image

max-width with 647:

image

@seulgiism seulgiism changed the title Migaku Note Types Do Not The Correct Width. Migaku Note Types has not the correct max-width Jun 14, 2023
@seulgiism seulgiism changed the title Migaku Note Types has not the correct max-width Migaku Note Types do not the correct max-width Jun 14, 2023
@seulgiism seulgiism changed the title Migaku Note Types do not the correct max-width Migaku Note Types does not have the correct max-width Jun 14, 2023
@seulgiism
Copy link
Author

It seems that the max-width number I suggested might not be as perfect either. On some other cards a protrusion can still be seen.

image

@seulgiism
Copy link
Author

Very sorry for the spam, it seems that the styling appears to be different on ios. It looks fine on a desktop machine.

@seulgiism
Copy link
Author

I found the problem.

Changed 96% to 93% in the following block(see below) and that solves it on mobile phones.

@media only screen and (max-width: 768px) {
  /* For mobile phones: */

  .migaku-card,
  .migaku-typeselect {
    width: 93%;
  }

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

No branches or pull requests

1 participant