diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bc12d61..c41e5a4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -96,6 +96,7 @@ jobs: merge: name: "Merge: ${{ matrix.image.name }}" runs-on: ubuntu-latest + if: github.event_name != 'pull_request' needs: - build strategy: diff --git a/resources/js/Components/Volunteer/VolunteerManagePanel.vue b/resources/js/Components/Volunteer/VolunteerManagePanel.vue index 2af2da8..0411b10 100644 --- a/resources/js/Components/Volunteer/VolunteerManagePanel.vue +++ b/resources/js/Components/Volunteer/VolunteerManagePanel.vue @@ -73,23 +73,22 @@ function attention() { // @ts-expect-error const el = panel.value!.$el; - // Pulse the panel border setTimeout(() => { + // Pulse the panel border el.classList.add('border-primary'); - if (attnTimeout) clearTimeout(attnTimeout); - attnTimeout = setTimeout(() => { el.classList.remove('border-primary'); attnTimeout = null; }, 500); - }, 0); - // Scroll to the panel if the header isn't in view - if (!isElementInView(closeBtn.value!.$el)) { - el.scrollIntoView({ - block: el.clientHeight < window.innerHeight ? 'center' : 'start', - }); - } + // Scroll to the panel if the header isn't in view + if (!isElementInView(closeBtn.value!.$el)) { + el.scrollIntoView({ + block: el.clientHeight < window.innerHeight ? 'center' : 'start', + container: 'nearest', + }); + } + }, 0); }