mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 04:00:36 +00:00
Conditionally allow completed quest image to be centered if no
completion text is present
This commit is contained in:
parent
195a8a5ca3
commit
41e1f4c75f
2 changed files with 8 additions and 2 deletions
|
|
@ -32,4 +32,10 @@
|
|||
visibility: hidden
|
||||
|
||||
.transparent
|
||||
opacity: 0.5
|
||||
opacity: 0.5
|
||||
|
||||
// Allow block element to be centered
|
||||
.col-centered
|
||||
margin-left: auto
|
||||
margin-right: auto
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ script(type='text/ng-template', id='modals/questCompleted.html')
|
|||
h4 "{{::Content.quests[user.party.quest.completed].text()}}"
|
||||
=env.t('completed')
|
||||
.modal-body
|
||||
.pull-right(class='quest_{{user.party.quest.completed}}')
|
||||
div(ng-class='::Content.quests[user.party.quest.completed].completion() ? "pull-right" : "col-centered"', class='quest_{{user.party.quest.completed}}')
|
||||
p(ng-bind-html='::Content.quests[user.party.quest.completed].completion()')
|
||||
quest-rewards(key='{{user.party.quest.completed}}', header=env.t('youReceived'))
|
||||
.modal-footer
|
||||
|
|
|
|||
Loading…
Reference in a new issue