[BUG] Css Bug - hiding the question unnecessarily ( i have included a css snippet to fix the problem )

This issue has been tracked since 2023-01-07.

Describe the bug
Css Bug - hiding the question unnecessarily ( i have included a css snippet to fix the problem - still require adjustments)
if the flashcard is long enough, some visible parts gets hidden unnecessarily

To Reproduce
Steps to reproduce the behavior:

change multiline flashcard creation delimiter from "?" to >> [Answer]-
then create a flashcard as follows

[!Question]
Q 53. If the President of India exercises his power
as provided under Article 359 of the
Constitution, then
(a) the President can promulgate ordinance
for any state.
(b) the powers of High Courts are subsumed
by the Supreme Court.
(c) the President is empowered to suspend
the enforcement of some Fundamental
Rights.
(d) he may extend National Emergency only
to few parts of the country and not the
entire country.

[!Answer]-

  • Q 53 (C).
  • Article 359 authorises the President to suspend the right to move any court for the enforcement of Fundamental Rights during a National Emergency.
  • This means that under Article 359, the Fundamental Rights as such are not suspended, but only their enforcement.
  • The said rights are theoretically alive but the right to seek remedy is suspended.
  • The suspension of enforcement relates to only those Fundamental Rights that are specified in the Presidential Order.
  • Further, the suspension could be for the period during the operation of emergency or for a shorter period as mentioned in the order, and the suspension order may extend to the whole or any part of the country.
  • It should be laid before each House of Parliament for approval.
  • Hence, only option (c) is correct.
  • The 44th Amendment Act of 1978 restricted the scope of Article 359 in two ways.
  • Firstly, the President cannot suspend the right to move the Court for the enforcement of fundamental rights guaranteed by Articles 20 to 21.
  • Secondly, only those laws which are related with the emergency are protected from being challenged and not other laws and the executive action taken only under such a law, is protected.
  • Article 359 operates in case of both when National Emergency is declared on grounds of war or external aggression as well as on the ground of armed rebellion.
  • Article 359 may extend to the entire country or a part of it.

Expected behavior
When scrolling down the question shouldn't get hidden unless its out of view

Screenshots
current screenshot where question gets hidden
image

**Current fix i applied **

#sr-easy-btn {
    background-color: #344835a8;
}


#sr-hard-btn, #sr-good-btn, #sr-easy-btn {
    height: 48px;
    margin: auto;
    color: #8f8d8d;
    
}
#sr-show-answer {
    height: 48px;
    line-height: 48px;
    width: 96%;
    text-align: center;
    position: absolute;
    bottom: 0;
    cursor: pointer;
    background-color: #23282f;
    color: #aeafb1;
    border-radius: 4px;
    user-select: text;
}
#sr-good-btn {
    background-color: #2b3a46;
}

#sr-hard-btn {
    background-color: #402e2d;
 
}

.modal-content.sr-modal-content {
    position: unset !important;
}
.sr-link {
    float: unset !important;
}
#sr-flashcard-view {
  
    padding-right: 10px;
}
st3v3nmw wrote this answer on 2023-01-08

This is on mobile, right?

This is in the pipeline (see #589) and will be available soon.
Thanks for the bug report!

monstertank wrote this answer on 2023-01-09

this is on PC.
mobiles problem is mainly due to "reset progress link"

.sr-link {
    float: unset !important;
}

fixed the mobile problem for now

In PC the problem is something related to "sr-model-content position"

.modal-content.sr-modal-content {
    position: unset !important;
}
.sr-link {
    float: unset !important;
}
#sr-flashcard-view {
   padding-right: 10px;
}

to fix my problem as shown above in the image , the above snippet fixed it for now

Thank you for this amazing plugin

More Details About Repo
Owner Name st3v3nmw
Repo Name obsidian-spaced-repetition
Full Name st3v3nmw/obsidian-spaced-repetition
Language TypeScript
Created Date 2021-01-30
Updated Date 2023-03-19
Star Count 817
Watcher Count 9
Fork Count 94
Issue Count 174

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date