Bug fixes

This commit is contained in:
sairaj mote 2022-09-08 17:55:28 +05:30
parent 0dcea80845
commit a069e1f79d
6 changed files with 62 additions and 3696 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1162,20 +1162,23 @@ ul {
right: 0; right: 0;
margin: -1rem 1rem 0 1rem; margin: -1rem 1rem 0 1rem;
list-style: none; list-style: none;
padding: 0.5rem 0; width: -webkit-fit-content;
width: -webkit-max-content; width: -moz-fit-content;
width: -moz-max-content; width: fit-content;
width: max-content; border-radius: 0.5rem;
border-radius: 0.3rem; transition: 0.3s opacity;
transition: 0.3s opacity ease;
background-color: rgba(var(--foreground-color), 1); background-color: rgba(var(--foreground-color), 1);
box-shadow: 0 0.5rem 1rem -0.3rem rgba(0, 0, 0, 0.3); box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
transform-origin: top right;
border: solid thin rgba(var(--text-color), 0.16);
} }
#task_context li { #task_context li {
padding: 0.8rem 1.5rem;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 0.9rem; font-size: 0.9rem;
margin: 0.2rem;
padding: 0.6rem 0.8rem;
border-radius: 0.3rem;
} }
#task_context li .icon { #task_context li .icon {
margin-right: 0.5rem; margin-right: 0.5rem;
@ -1326,7 +1329,7 @@ ul {
transform: translateY(1.5rem); transform: translateY(1.5rem);
background-color: rgba(var(--foreground-color), 1); background-color: rgba(var(--foreground-color), 1);
opacity: 0; opacity: 0;
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2); box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
@ -1336,10 +1339,10 @@ ul {
transform: scale(0.9); transform: scale(0.9);
} }
.fab-actions__item:nth-of-type(1) { .fab-actions__item:nth-of-type(1) {
transition-delay: 0.2s; transition-delay: 0.1s;
} }
.fab-actions__item:nth-of-type(2) { .fab-actions__item:nth-of-type(2) {
transition-delay: 0.1s; transition-delay: 0.05s;
} }
.fab-actions__item .icon { .fab-actions__item .icon {
fill: var(--accent-color); fill: var(--accent-color);

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -1166,18 +1166,21 @@ ul {
right: 0; right: 0;
margin: -1rem 1rem 0 1rem; margin: -1rem 1rem 0 1rem;
list-style: none; list-style: none;
padding: 0.5rem 0; width: fit-content;
width: max-content; border-radius: 0.5rem;
border-radius: 0.3rem; transition: 0.3s opacity;
transition: 0.3s opacity ease;
background-color: rgba(var(--foreground-color), 1); background-color: rgba(var(--foreground-color), 1);
box-shadow: 0 0.5rem 1rem -0.3rem rgba(0, 0, 0, 0.3); box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
transform-origin: top right;
border: solid thin rgba(var(--text-color), 0.16);
li { li {
padding: 0.8rem 1.5rem;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 0.9rem; font-size: 0.9rem;
margin: 0.2rem;
padding: 0.6rem 0.8rem;
border-radius: 0.3rem;
.icon { .icon {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
@ -1328,8 +1331,8 @@ ul {
transform: translateY(1.5rem); transform: translateY(1.5rem);
background-color: rgba(var(--foreground-color), 1); background-color: rgba(var(--foreground-color), 1);
opacity: 0; opacity: 0;
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
opacity 0.3s; opacity 0.2s;
box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2); box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
user-select: none; user-select: none;
&:hover, &:hover,
@ -1337,10 +1340,10 @@ ul {
transform: scale(0.9); transform: scale(0.9);
} }
&:nth-of-type(1) { &:nth-of-type(1) {
transition-delay: 0.2s; transition-delay: 0.1s;
} }
&:nth-of-type(2) { &:nth-of-type(2) {
transition-delay: 0.1s; transition-delay: 0.05s;
} }
.icon { .icon {
fill: var(--accent-color); fill: var(--accent-color);

View File

@ -1320,7 +1320,7 @@
const { time, internName, topic, description } = update const { time, internName, topic, description } = update
const card = getRef('update_card_template').content.cloneNode(true) const card = getRef('update_card_template').content.cloneNode(true)
card.querySelector('.update__sender').textContent = internName card.querySelector('.update__sender').textContent = internName
card.querySelector('.update__time').textContent = getFormatedTime(time) card.querySelector('.update__time').textContent = getFormattedTime(time)
card.querySelector('.update__topic').textContent = topic card.querySelector('.update__topic').textContent = topic
card.querySelector('.update__message').textContent = description card.querySelector('.update__message').textContent = description
return card; return card;
@ -1720,7 +1720,7 @@
getRef('task_context').classList.remove('hidden') getRef('task_context').classList.remove('hidden')
getRef('task_context').animate([ getRef('task_context').animate([
{ {
transform: 'translate(0.5rem, -1rem)', transform: 'scaleY(0.95) translateY(-0.5rem)',
opacity: '0' opacity: '0'
}, },
{ {
@ -1741,11 +1741,11 @@
opacity: '1' opacity: '1'
}, },
{ {
transform: 'translate(0.5rem, -1rem)', transform: 'scaleY(0.95) translateY(-0.5rem)',
opacity: '0' opacity: '0'
}, },
], { ], {
duration: 200, duration: 100,
easing: 'ease' easing: 'ease'
}).onfinish = () => { }).onfinish = () => {
getRef('task_context').classList.add('hidden') getRef('task_context').classList.add('hidden')
@ -1780,11 +1780,11 @@
notify('Please enter description of the task', 'error') notify('Please enter description of the task', 'error')
return return
} }
const taskno = RIBC.admin.addTaskInMap(currentProject, currentBranch) const taskNo = RIBC.admin.addTaskInMap(currentProject, currentBranch)
RIBC.admin.editTaskDetails({ taskTitle: titleContent, taskDescription: descriptionContent }, currentProject, currentBranch, taskno) RIBC.admin.editTaskDetails({ taskTitle: titleContent, taskDescription: descriptionContent }, currentProject, currentBranch, taskNo)
RIBC.admin.putTaskStatus('incomplete', currentProject, currentBranch, taskno) RIBC.admin.putTaskStatus('incomplete', currentProject, currentBranch, taskNo)
card.remove() card.remove()
getRef('task_list').append(render.taskListItem(taskno)) getRef('task_list').append(render.taskListItem(taskNo))
getRef('add_task').disabled = false getRef('add_task').disabled = false
notify('Task added to current branch', 'success') notify('Task added to current branch', 'success')
} }
@ -1799,7 +1799,7 @@
getConfirmation("Do you want to commit to changes?").then((result) => { getConfirmation("Do you want to commit to changes?").then((result) => {
if (result) { if (result) {
RIBC.admin.updateObjects().then(res => { RIBC.admin.updateObjects().then(res => {
notify('Changes commited.', 'success') notify('Changes committed.', 'success')
}).catch(err => { }).catch(err => {
console.error(err) console.error(err)
}) })
@ -2127,7 +2127,7 @@
getRef('admin_fab').removeAttribute('open') getRef('admin_fab').removeAttribute('open')
setTimeout(() => { setTimeout(() => {
getRef('admin_fab__options').classList.add('hidden') getRef('admin_fab__options').classList.add('hidden')
}, 300); }, 200);
} else { } else {
getRef('admin_fab__options').classList.remove('hidden') getRef('admin_fab__options').classList.remove('hidden')
setTimeout(() => { setTimeout(() => {

View File

@ -66,9 +66,9 @@
}); });
Ribc.getInternUpdates = function (count = null) { Ribc.getInternUpdates = function (count = null) {
var internUpdates = Object.values(floGlobals.generalDataset("InternUpdates")).map(data => { let internUpdates = Object.values(floGlobals.generalDataset("InternUpdates")).map(data => {
return { return {
floID: data.sender, floID: data.senderID,
update: data.message, update: data.message,
time: data.vectorClock.split('_')[0], time: data.vectorClock.split('_')[0],
note: data.note note: data.note