mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
fix(teams): more style updates
This commit is contained in:
@@ -14,12 +14,12 @@
|
|||||||
@taskEdited="loadTasks"
|
@taskEdited="loadTasks"
|
||||||
@taskDestroyed="taskDestroyed"
|
@taskDestroyed="taskDestroyed"
|
||||||
/>
|
/>
|
||||||
<div class="row tasks-navigation">
|
<div class="row tasks-navigation mb-4">
|
||||||
<div class="col-12 col-md-4">
|
<div class="col-12 col-md-4 d-flex align-items-center">
|
||||||
<h1>{{ group.name }}</h1>
|
<h1>{{ group.name }}</h1>
|
||||||
</div>
|
</div>
|
||||||
<!-- @TODO: Abstract to component!-->
|
<!-- @TODO: Abstract to component!-->
|
||||||
<div class="col-12 col-md-4">
|
<div class="col-12 col-md-4 d-flex justify-content-center align-items-center">
|
||||||
<input
|
<input
|
||||||
v-model="searchText"
|
v-model="searchText"
|
||||||
class="form-control input-search"
|
class="form-control input-search"
|
||||||
@@ -28,18 +28,18 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="create-task-area ml-auto d-flex align-items-center"
|
class="col-12 col-md-4 create-task-area d-flex align-items-center"
|
||||||
>
|
>
|
||||||
<toggle-switch
|
<toggle-switch
|
||||||
id="taskMirrorToggle"
|
id="taskMirrorToggle"
|
||||||
class="mr-3 mb-1"
|
class="mr-3 mb-1 ml-auto"
|
||||||
:label="'Copy tasks'"
|
:label="'Copy tasks'"
|
||||||
:checked="user.preferences.tasks.mirrorGroupTasks"
|
:checked="user.preferences.tasks.mirrorGroupTasks"
|
||||||
:hover-text="'Add assigned and open tasks to your personal task board'"
|
:hover-text="'Add assigned and open tasks to your personal task board'"
|
||||||
@change="changeMirrorPreference"
|
@change="changeMirrorPreference"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
class="day-start mb-auto d-flex align-items-center"
|
class="day-start d-flex align-items-center"
|
||||||
v-html="$t('dayStart', { startTime: groupStartTime } )"
|
v-html="$t('dayStart', { startTime: groupStartTime } )"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -126,11 +126,12 @@
|
|||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: $purple-300;
|
color: $purple-300;
|
||||||
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.create-task-area {
|
.create-task-area {
|
||||||
top: 1.5rem;
|
top: 1.5rem;
|
||||||
right: 2.25rem;
|
height: 40px;
|
||||||
|
|
||||||
.day-start {
|
.day-start {
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
@@ -141,6 +142,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input-search {
|
||||||
|
max-width: 458px;
|
||||||
|
}
|
||||||
|
|
||||||
.positive {
|
.positive {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
v-if="task.type === 'habit'"
|
v-if="task.type === 'habit'"
|
||||||
class="left-control d-flex justify-content-center pt-3"
|
class="left-control d-flex justify-content-center pt-3"
|
||||||
:class="[{
|
:class="[{
|
||||||
'control-bottom-box': task.group.id,
|
'control-bottom-box': task.group.id && !isOpenTask,
|
||||||
'control-top-box': approvalsClass
|
'control-top-box': approvalsClass
|
||||||
}, controlClass.up.bg]"
|
}, controlClass.up.bg]"
|
||||||
>
|
>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
v-if="task.type === 'daily' || task.type === 'todo'"
|
v-if="task.type === 'daily' || task.type === 'todo'"
|
||||||
class="left-control d-flex justify-content-center"
|
class="left-control d-flex justify-content-center"
|
||||||
:class="[{
|
:class="[{
|
||||||
'control-bottom-box': task.group.id,
|
'control-bottom-box': task.group.id && !isOpenTask,
|
||||||
'control-top-box': approvalsClass}, controlClass.bg]"
|
'control-top-box': approvalsClass}, controlClass.bg]"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -347,7 +347,7 @@
|
|||||||
v-if="task.type === 'habit'"
|
v-if="task.type === 'habit'"
|
||||||
class="right-control d-flex justify-content-center pt-3"
|
class="right-control d-flex justify-content-center pt-3"
|
||||||
:class="[{
|
:class="[{
|
||||||
'control-bottom-box': task.group.id,
|
'control-bottom-box': task.group.id && !isOpenTask,
|
||||||
'control-top-box': approvalsClass}, controlClass.down.bg]"
|
'control-top-box': approvalsClass}, controlClass.down.bg]"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -22,7 +22,19 @@
|
|||||||
>
|
>
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</h2>
|
</h2>
|
||||||
<div class="ml-auto d-flex align-items-center">
|
<span
|
||||||
|
v-if="groupAccessRequiredAndOnPersonalPage"
|
||||||
|
class="svg-icon icon-12 close-icon"
|
||||||
|
aria-hidden="true"
|
||||||
|
tabindex="0"
|
||||||
|
@click="cancel()"
|
||||||
|
@keypress.enter="cancel()"
|
||||||
|
v-html="icons.close"
|
||||||
|
></span>
|
||||||
|
<div
|
||||||
|
v-else
|
||||||
|
class="ml-auto d-flex align-items-center"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
class="cancel-task-btn mr-3"
|
class="cancel-task-btn mr-3"
|
||||||
:class="cssClass('headings')"
|
:class="cssClass('headings')"
|
||||||
@@ -121,7 +133,7 @@
|
|||||||
<div
|
<div
|
||||||
v-if="task && groupAccessRequiredAndOnPersonalPage
|
v-if="task && groupAccessRequiredAndOnPersonalPage
|
||||||
&& (task.type === 'daily' || task.type === 'todo')"
|
&& (task.type === 'daily' || task.type === 'todo')"
|
||||||
class="summary-sentence py-3 px-4"
|
class="summary-sentence py-3 px-4 mb-n4"
|
||||||
v-html="summarySentence"
|
v-html="summarySentence"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -995,6 +1007,7 @@
|
|||||||
.summary-sentence {
|
.summary-sentence {
|
||||||
background-color: $gray-700;
|
background-color: $gray-700;
|
||||||
line-height: 1.71;
|
line-height: 1.71;
|
||||||
|
border-radius: 0px 0px 8px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-text {
|
.input-group-text {
|
||||||
@@ -1040,6 +1053,7 @@ import goldIcon from '@/assets/svg/gold.svg';
|
|||||||
import chevronIcon from '@/assets/svg/chevron.svg';
|
import chevronIcon from '@/assets/svg/chevron.svg';
|
||||||
import calendarIcon from '@/assets/svg/calendar.svg';
|
import calendarIcon from '@/assets/svg/calendar.svg';
|
||||||
import gripIcon from '@/assets/svg/grip.svg';
|
import gripIcon from '@/assets/svg/grip.svg';
|
||||||
|
import closeIcon from '@/assets/svg/close.svg';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -1070,6 +1084,7 @@ export default {
|
|||||||
streak: streakIcon,
|
streak: streakIcon,
|
||||||
calendar: calendarIcon,
|
calendar: calendarIcon,
|
||||||
grip: gripIcon,
|
grip: gripIcon,
|
||||||
|
close: closeIcon,
|
||||||
}),
|
}),
|
||||||
members: [],
|
members: [],
|
||||||
membersNameAndId: [],
|
membersNameAndId: [],
|
||||||
@@ -1156,6 +1171,7 @@ export default {
|
|||||||
},
|
},
|
||||||
title () {
|
title () {
|
||||||
const type = this.$t(this.task.type);
|
const type = this.$t(this.task.type);
|
||||||
|
if (this.groupAccessRequiredAndOnPersonalPage) return this.$t('taskSummary', { type });
|
||||||
return this.$t(this.purpose === 'edit' ? 'editATask' : 'createTask', { type });
|
return this.$t(this.purpose === 'edit' ? 'editATask' : 'createTask', { type });
|
||||||
},
|
},
|
||||||
isUserTask () {
|
isUserTask () {
|
||||||
|
|||||||
@@ -132,5 +132,6 @@
|
|||||||
"errorTemporaryItem": "This item is temporary and cannot be pinned.",
|
"errorTemporaryItem": "This item is temporary and cannot be pinned.",
|
||||||
"addTags": "Add tags...",
|
"addTags": "Add tags...",
|
||||||
"enterTag": "Enter a tag",
|
"enterTag": "Enter a tag",
|
||||||
"pressEnterToAddTag": "Press Enter to add tag: '<%= tagName %>'"
|
"pressEnterToAddTag": "Press Enter to add tag: '<%= tagName %>'",
|
||||||
|
"taskSummary": "<%= type %> Summary"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user