From d0507946aa924f5742023a40f9638b6358e5f134 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Fri, 20 Oct 2023 04:28:34 +0300 Subject: [PATCH] display avatars for websites and qapps --- .../components/friends-view/friends-feed.js | 4 +- core/src/components/show-plugin.js | 102 ++++++++++++++++-- 2 files changed, 97 insertions(+), 9 deletions(-) diff --git a/core/src/components/friends-view/friends-feed.js b/core/src/components/friends-view/friends-feed.js index 10bfcd24..24f7dfbf 100644 --- a/core/src/components/friends-view/friends-feed.js +++ b/core/src/components/friends-view/friends-feed.js @@ -164,8 +164,8 @@ class FriendsFeed extends connect(store)(LitElement) { try { - await new Promise(()=> { - setTimeout((res) => { + await new Promise((res)=> { + setTimeout(() => { res() }, 5000); }) diff --git a/core/src/components/show-plugin.js b/core/src/components/show-plugin.js index a0857176..0b9097f4 100644 --- a/core/src/components/show-plugin.js +++ b/core/src/components/show-plugin.js @@ -995,6 +995,7 @@ class NavBar extends connect(store)(LitElement) { border-top-right-radius: 20px; border-bottom-left-radius: 20px; border-bottom-right-radius: 10px; + position: relative; } .app-list .app-icon:hover .removeIcon { @@ -1008,14 +1009,14 @@ class NavBar extends connect(store)(LitElement) { } .menuIconPos { - position: relative; right: -2px; } .removeIconPos { position: absolute; - top: -36px; - left: 0; + top: -10px; + right: -10px; + z-index: 1; } .menuIconPos:hover .removeIcon { @@ -1027,9 +1028,7 @@ class NavBar extends connect(store)(LitElement) { color: var(--black); --mdc-icon-size: 28px; cursor: pointer; - position: absolute; - top: 30px; - left: 123px; + position: relative z-index: 1; } @@ -2147,12 +2146,19 @@ class NavBar extends connect(store)(LitElement) { } renderRemoveIcon(appurl, appicon, appname, appid, appplugin) { + console.log({appurl, appname, appid}) return html` + +