bug fixes

This commit is contained in:
sairaj mote 2023-09-27 15:51:27 +05:30
parent b5e69a4af8
commit 8df848271d
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,6 @@ smNotifications.innerHTML = `
word-break: break-all; word-break: break-all;
word-break: break-word; word-break: break-word;
hyphens: auto; hyphens: auto;
max-width: 100%;
padding: max(1rem,1.5vw); padding: max(1rem,1.5vw);
align-items: center; align-items: center;
box-shadow: 0 0.5rem 1rem 0 rgba(0,0,0,0.14); box-shadow: 0 0.5rem 1rem 0 rgba(0,0,0,0.14);
@ -134,9 +133,11 @@ smNotifications.innerHTML = `
.notification-panel{ .notification-panel{
top: auto; top: auto;
bottom: 0; bottom: 0;
max-width: max-content;
} }
.notification{ .notification{
width: auto; width: auto;
max-width: max-content;
border: solid 1px rgba(var(--text-color, (17,17,17)), 0.2); border: solid 1px rgba(var(--text-color, (17,17,17)), 0.2);
} }
} }
@ -244,6 +245,7 @@ customElements.define('sm-notifications', class extends HTMLElement {
this.notificationPanel.append(notification); this.notificationPanel.append(notification);
else else
this.notificationPanel.prepend(notification); this.notificationPanel.prepend(notification);
notification.scrollIntoView({ behavior: 'smooth' });
this.notificationPanel.animate( this.notificationPanel.animate(
[ [
{ {

File diff suppressed because one or more lines are too long