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

Window Resolution changes when switching from Front and Back #5

Open
abhishek7786 opened this issue Oct 25, 2024 · 5 comments
Open

Comments

@abhishek7786
Copy link

Window size changes when switching from front and back
Refer below Gif

@nihil-admirari many Thanks for the amazing addon.

Please take a look, in case it is easy fix please fix it, as while reviewing it becomes annoying.

Incase it can be fixed via some window/display configurations please let me know.

ClozeFrontBackResolution-ezgif com-video-to-gif-converter

@nihil-admirari
Copy link
Owner

  1. Are you using the latest Anki?
  2. Are you using vanilla templates from this repository or you've applied some modifications?

@abhishek7786
Copy link
Author

  1. yes - Anki Version ⁨- 24.06.3 (d678e393)⁩
    Python 3.9.18 Qt 6.6.2 PyQt 6.6.1

  2. No modification applied, straight out of the box usage.

@nihil-admirari
Copy link
Owner

nihil-admirari commented Nov 1, 2024

Do you have any addons installed?

Can you please post HTML for Text, Before|After|OnlyContext|RevealAll|InactiveHints, and Back Extra fields?

@abhishek7786
Copy link
Author

Front -
{{cloze:Text}}

Back -
{{cloze:Text}}

{{Back Extra}}

Styling -
.card {
font-family: arial;
font-size: 20px;
text-align: center;
color: black;
background-color: white;
}
.cloze {
font-weight: bold;
color: blue;
}
.nightMode .cloze {
color: lightblue;
}

In case you need something else please let me know.

Yes, many different addons are installed.
(I'll try to disable few addons and try if any addon conflicts here, -> In case you've some easier way to understand which addon might be causing this let me know ).

@nihil-admirari
Copy link
Owner

  1. These aren't the correct Front and Back templates. Correct templates are at front.template.anki and back.template.anki. Steps 4 and 5 in How to Use explicitly ask you to use them. Please check that all the steps in How to Use have been followed.

  2. Yes, many different addons are installed.

    Please try without any.

  3. I've asked you to provide HTML sources for Text, Before|After|OnlyContext|RevealAll|InactiveHints, and Back Extra fields for the card you having an issue with. It's not the same as Front and Back templates. Field's HTML can be accessed by clicking on ‘Toggle HTML editor’ button in the upper right corner of every field in Anki's Browser. See the screenshot:
    Screenshot_20241105_181427

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

2 participants