From 20fe48974f6138a151ae24c4c0c56d1a05390cbf Mon Sep 17 00:00:00 2001 From: grimhilt Date: Fri, 7 Apr 2023 16:52:13 +0200 Subject: [PATCH] style to implement flags and options on message --- front/src/views/room/Header.vue | 4 +-- front/src/views/room/MemberList.vue | 1 + front/src/views/room/Message.vue | 51 +++++++++++++++++++---------- 3 files changed, 36 insertions(+), 20 deletions(-) diff --git a/front/src/views/room/Header.vue b/front/src/views/room/Header.vue index 25315ec..2b1f0d3 100644 --- a/front/src/views/room/Header.vue +++ b/front/src/views/room/Header.vue @@ -14,6 +14,7 @@ const roomTitle = () => { return props.room?.roomName; }; +// todo remove us from list const to = () => props.room?.members.filter((member: Address) => member.type == "to"); const cc = () => props.room?.members.filter((member: Address) => member.type == "cc"); @@ -48,8 +49,7 @@ const cc = () => props.room?.members.filter((member: Address) => member.type == } .members-list { - padding: 3px 0; - margin: 0 5px; + padding: 3px 5px; border-bottom: 1px solid #505050; } .members { diff --git a/front/src/views/room/MemberList.vue b/front/src/views/room/MemberList.vue index 6ed36d3..6d48a85 100644 --- a/front/src/views/room/MemberList.vue +++ b/front/src/views/room/MemberList.vue @@ -11,6 +11,7 @@ const props = defineProps({ type: String, members: Object as PropType // if (!props.members) continue; // members?.push(props?.members[0]); // } +// todo deal with long list and responsive @@ -106,17 +109,7 @@ const displayAddresses = (addressIds: string[] | undefined): string => { justify-content: space-between; background-color: var(--quaternary-background); padding: 3px 10px; - margin-bottom: 6px; - border-radius: 4px; -} - -iframe { - overflow-y: auto; - max-height: 300px; - width: 100%; - border: none; - max-width: 600px; /* template width being 600px to 640px up to 750px (experiment and test) */ - background-color: rgb(234, 234, 234); + border-radius: 4px 4px 0 0; } .left, @@ -128,4 +121,26 @@ iframe { margin: 0 10px; text-align: center; } + +.content { + display: flex; + padding-top: 6px; + flex-direction: row; + /* background-color: #ec7a4342; + background-color: #353c6261; */ +} + +iframe { + overflow-y: auto; + max-height: 300px; + flex-basis: 100%; + border: none; + max-width: 600px; /* template width being 600px to 640px up to 750px (experiment and test) */ + background-color: rgb(234, 234, 234); +} + +.options { + flex: 1; + text-align: center; +}