From a0541947e397c25662e627e2cf20c762d137f340 Mon Sep 17 00:00:00 2001 From: Ali Hassan Date: Mon, 29 Jan 2024 01:45:16 +0500 Subject: [PATCH] info_page double click fixed --- src/node_modules/info-page/info-page.js | 18 ++++++++++-------- src/node_modules/our-alumni/our-alumni.js | 1 - src/node_modules/our-members/our-members.js | 5 ++++- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/node_modules/info-page/info-page.js b/src/node_modules/info-page/info-page.js index 81a598d..56651f6 100644 --- a/src/node_modules/info-page/info-page.js +++ b/src/node_modules/info-page/info-page.js @@ -119,12 +119,14 @@ function info_page (opts = default_opts, protocol) { return element function show () { return event => { - const channel = state.net[state.aka[name]] - channel.send({ - head: [id, channel.send.id, channel.mid++], - type: 'show' - }) - setScrollTop(status.windows[name].getBoundingClientRect().top - popup_wrapper.getBoundingClientRect().top + popup_wrapper.scrollTop) + setTimeout(() => { + const channel = state.net[state.aka[name]] + channel.send({ + head: [id, channel.send.id, channel.mid++], + type: 'show' + }) + setScrollTop(status.windows[name].getBoundingClientRect().top - popup_wrapper.getBoundingClientRect().top + popup_wrapper.scrollTop) + }, 200) } } } @@ -275,8 +277,8 @@ function get_theme () { background-size: 16px 16px; position: relative; overflow-y: scroll; - height: 94vh; - max-height: 94vh; + height: 95vh; + max-height: 95vh; padding: 0 0 30px 20px; scrollbar-width: none; /* For Firefox */ } diff --git a/src/node_modules/our-alumni/our-alumni.js b/src/node_modules/our-alumni/our-alumni.js index 378a319..5d1ec26 100644 --- a/src/node_modules/our-alumni/our-alumni.js +++ b/src/node_modules/our-alumni/our-alumni.js @@ -197,7 +197,6 @@ function get_theme () { background-size: 10px 10px; background-color: var(--bg_color); border: 1px solid var(--primary_color); - max-height: 600px; overflow-y: scroll; scrollbar-width: none; /* For Firefox */ } diff --git a/src/node_modules/our-members/our-members.js b/src/node_modules/our-members/our-members.js index fe181f8..73e4398 100644 --- a/src/node_modules/our-members/our-members.js +++ b/src/node_modules/our-members/our-members.js @@ -139,7 +139,7 @@ function get_theme () { } .member_content table td { border: 1px solid var(--primary_color); - padding: 8px; + padding: 8px 4px; } @container (min-width: 510px) { .our_member .member_content { @@ -147,6 +147,9 @@ function get_theme () { height: auto; margin-bottom: 30px; } + .member_content table td { + padding: 8px; + } } ` }