UX changes

This commit is contained in:
sairaj mote 2021-08-03 16:10:19 +05:30
parent 02f15ab652
commit 3affb3d4cb
4 changed files with 33 additions and 10 deletions

View File

@ -1296,6 +1296,15 @@ input[type=date]:focus {
transition: width 0.3s;
}
#username {
margin-top: 1.5rem;
margin-bottom: 0.5rem;
}
#logout {
margin-top: 1.5rem;
}
@media only screen and (max-width: 640px) {
.hide-on-mobile,
.hide-page-on-mobile {
@ -1374,7 +1383,7 @@ input[type=date]:focus {
}
#admin_page {
padding: 1rem 0 1rem 1rem;
padding: 1rem 0;
gap: 1rem;
grid-template-columns: 18rem minmax(0, 1fr);
grid-template-rows: 1fr;
@ -1384,6 +1393,10 @@ input[type=date]:focus {
background-color: var(--foreground-color);
}
#project_editing_panel {
padding-right: 1rem;
}
#admin_page__left,
#project_editing_panel {
border-radius: 0.5rem;
@ -1487,7 +1500,7 @@ input[type=date]:focus {
#settings_page {
height: 100%;
align-items: flex-start;
padding: 1rem 2rem;
padding: 2rem;
}
.watchlist_project_card {

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -1320,7 +1320,13 @@ input[type="date"]{
transition: width 0.3s;
}
}
#username{
margin-top: 1.5rem;
margin-bottom: 0.5rem;
}
#logout{
margin-top: 1.5rem;
}
@media only screen and (max-width: 640px) {
.hide-on-mobile,
.hide-page-on-mobile {
@ -1401,7 +1407,7 @@ input[type="date"]{
}
#admin_page {
padding: 1rem 0 1rem 1rem;
padding: 1rem 0;
gap: 1rem;
grid-template-columns: 18rem minmax(0, 1fr);
grid-template-rows: 1fr;
@ -1409,6 +1415,9 @@ input[type="date"]{
#admin_page__left{
background-color: var(--foreground-color);
}
#project_editing_panel{
padding-right: 1rem;
}
#admin_page__left,
#project_editing_panel{
border-radius: 0.5rem;
@ -1504,7 +1513,7 @@ input[type="date"]{
#settings_page {
height: 100%;
align-items: flex-start;
padding: 1rem 2rem;
padding: 2rem;
}
.watchlist_project_card{
padding: 1.5rem;

View File

@ -670,7 +670,7 @@
//floDapps.addStartUpFunction('Sample', Promised Function)
//floDapps.setAppObjectStores({sampleObs1:{}, sampleObs2:{options{autoIncrement:true, keyPath:'SampleKey'}, Indexes:{sampleIndex:{}}}})
floDapps.setCustomPrivKeyInput(myInput)
floDapps.setCustomPrivKeyInput(customSignIn)
floDapps.launchStartUp().then(result => {
loader('show')
console.log(result)
@ -2083,7 +2083,7 @@
taskDetails['taskDescription'] = taskDescription
}
RIBC.manage.editTaskDetails(taskDetails, currentProject, currentBranch, currentTask.dataset.taskId)
notify('Changes saved', 'success')
notify('Changes saved locally, commit the changes to make them permanent', 'success')
}
})
getRef('task_list').addEventListener('dblclick', (e) => {
@ -2182,7 +2182,7 @@
getConfirmation("Do you want to commit to changes?").then((result) => {
if (result) {
RIBC.manage.updateObjects().then(res => {
notify('Changes saved.', 'success')
notify('Changes commited.', 'success')
renderAllElements()
}).catch(err => {
console.error(err)
@ -2482,7 +2482,7 @@
getRef('loading_page').classList.add('hide-completely')
}
}
function myInput() {
function customSignIn() {
return new Promise((resolve, reject) => {
loader('hide')
getRef('sign_in_page').classList.remove('hide-completely');
@ -2494,6 +2494,7 @@
resolve(getRef('private_key_input').value.trim())
getRef('private_key_input').value = ''
loader('show')
window.location.hash = '#dashboard_page'
getRef('sign_in_page').classList.add('hide-completely');
}
})