Merge pull request #14 from ranchimall/ui-work
minor UI/UX improvements
This commit is contained in:
commit
4de01cd940
3582
components.js
3582
components.js
File diff suppressed because it is too large
Load Diff
@ -824,7 +824,7 @@
|
||||
</sm-form>
|
||||
</section>
|
||||
</section>
|
||||
<nav id="main_navbar">
|
||||
<nav id="main_navbar" class="hide">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#/home" class="nav-item interact">
|
||||
|
||||
@ -742,6 +742,7 @@ smNotifications.innerHTML = `
|
||||
max-width: 100%;
|
||||
padding: 1rem;
|
||||
align-items: center;
|
||||
box-shadow: 0 0.5rem 1rem 0 rgba(0,0,0,0.14);
|
||||
touch-action: none;
|
||||
}
|
||||
.icon-container:not(:empty){
|
||||
@ -809,13 +810,18 @@ smNotifications.innerHTML = `
|
||||
padding: 0.5rem 0.8rem;
|
||||
border-radius: 0.2rem;
|
||||
border: none;
|
||||
background-color: rgba(var(--text-color, (17,17,17)), 0.06);
|
||||
background-color: rgba(var(--text-color, (17,17,17)), 0.03);
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
color: rgba(var(--text-color, (17,17,17)), 0.9);
|
||||
color: var(--accent-color, teal);
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
@media screen and (max-width: 640px){
|
||||
.notification-panel:not(:empty){
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 640px){
|
||||
.notification-panel{
|
||||
max-width: 28rem;
|
||||
|
||||
@ -222,6 +222,7 @@ userUI.renderMoneyRequests = function (requests, error = null) {
|
||||
for (let r in requests) {
|
||||
if (!requests[r].note) {
|
||||
notify(`You have received payment request from ${getFloIdTitle(requests[r].senderID)}`, '', {
|
||||
pinned: true,
|
||||
action: {
|
||||
label: 'View',
|
||||
callback: () => {
|
||||
|
||||
@ -511,7 +511,6 @@ async function showPage(targetPage, options = {}) {
|
||||
},
|
||||
], { ...animOptions, easing: 'ease-in' })
|
||||
}
|
||||
getRef('main_header').classList.remove('hide')
|
||||
const previousActiveElementIndex = [...getRef('main_navbar').querySelectorAll('.nav-item')].indexOf(previousActiveElement)
|
||||
const currentActiveElementIndex = [...getRef('main_navbar').querySelectorAll('.nav-item')].indexOf(currentActiveElement)
|
||||
const isOnTop = previousActiveElementIndex < currentActiveElementIndex
|
||||
@ -573,7 +572,6 @@ async function showPage(targetPage, options = {}) {
|
||||
}).onfinish = () => {
|
||||
getRef('main_navbar').classList.add('hide')
|
||||
}
|
||||
// getRef('main_header').classList.add('hide')
|
||||
}
|
||||
}
|
||||
document.querySelectorAll('.page').forEach(page => page.classList.add('hide'))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user