From 398ac8be1ed30d462912d2a9d48aeff26b74d24c Mon Sep 17 00:00:00 2001 From: Murat Merdoglu <64781656+muratmerdoglu-dp@users.noreply.github.com> Date: Tue, 14 Jan 2025 16:44:58 +0100 Subject: [PATCH] BC 8586 - Make Visible Action Menu on Mobile View (#3487) BC-8586 - implement sticky action menu on mobile view --- .../templates/DefaultWireframe.unit.ts | 25 ++++- src/components/templates/DefaultWireframe.vue | 14 ++- .../templates/default-wireframe.types.ts | 1 + .../room/RoomMembers/ActionMenu.unit.ts | 50 ++++++++++ .../feature/room/RoomMembers/ActionMenu.vue | 52 +++++++++++ .../room/RoomMembers/MembersTable.unit.ts | 92 ++++++++++--------- .../feature/room/RoomMembers/MembersTable.vue | 64 ++++++------- src/modules/page/room/RoomMembers.page.vue | 21 ++++- src/serverApi/v3/api.ts | 34 ++----- 9 files changed, 241 insertions(+), 112 deletions(-) create mode 100644 src/modules/feature/room/RoomMembers/ActionMenu.unit.ts create mode 100644 src/modules/feature/room/RoomMembers/ActionMenu.vue diff --git a/src/components/templates/DefaultWireframe.unit.ts b/src/components/templates/DefaultWireframe.unit.ts index 3d65312611..5b0e51f57d 100644 --- a/src/components/templates/DefaultWireframe.unit.ts +++ b/src/components/templates/DefaultWireframe.unit.ts @@ -8,6 +8,7 @@ import { } from "@@/tests/test-utils/setup"; import { ComponentMountingOptions, mount } from "@vue/test-utils"; import DefaultWireframe from "../templates/DefaultWireframe.vue"; +import { nextTick } from "vue"; describe("DefaultWireframe", () => { const setup = ( @@ -44,6 +45,7 @@ describe("DefaultWireframe", () => { props: { fullWidth: true, headline: "dummy title", + maxWidth: "full", breadcrumbs: [ { title: "dummy breadcrumb 1", @@ -109,7 +111,7 @@ describe("DefaultWireframe", () => { it("displays headline in slot", () => { const wrapper = setup({ - props: { headline: "property title", fullWidth: false }, + props: { headline: "property title", fullWidth: false, maxWidth: "full" }, slots: { header: [ "