fix(teams): adjust task title spacing, don't damage user for team Daily

This commit is contained in:
SabreCat
2022-05-06 14:23:09 -05:00
parent 40af14b061
commit db354875ee
2 changed files with 3 additions and 4 deletions

View File

@@ -88,7 +88,7 @@
:class="contentClass"
>
<div
class="task-clickable-area"
class="task-clickable-area pt-1 px-3 pb-0"
:class="{ 'cursor-auto': !teamManagerAccess }"
tabindex="0"
@click="edit($event, task)"
@@ -469,6 +469,7 @@
}
&.has-notes {
margin-bottom: 0px;
padding-bottom: 4px;
}
@@ -482,8 +483,6 @@
}
.task-clickable-area {
padding: 7px 8px;
padding-bottom: 0px;
border: transparent solid 1px;
cursor: pointer;

View File

@@ -105,7 +105,7 @@ function _gainMP (user, val) {
// ===== CONSTITUTION =====
// TODO Decreases HP loss from bad habits / missed dailies by 0.5% per point.
function _subtractPoints (user, task, stats, delta) {
if (task.group.id && !task.userId && task.type === 'daily') return stats.hp;
if (task.group.id && task.type === 'daily') return stats.hp;
let conBonus = 1 - statsComputed(user).con / 250;
if (conBonus < 0.1) conBonus = 0.1;