Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/lib/helpers/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UserRole } from "./enums";
import { EditorType, UserRole } from "./enums";

export const USER_SENDERS = [
UserRole.Admin,
Expand All @@ -8,4 +8,17 @@ export const USER_SENDERS = [

export const BOT_SENDERS = [
UserRole.Assistant
];

export const TEXT_EDITORS = [
EditorType.Text,
EditorType.Address,
EditorType.Phone,
EditorType.Email,
EditorType.DateTimePicker,
EditorType.DateTimeRangePicker
];

export const FILE_EDITORS = [
EditorType.File
];
255 changes: 143 additions & 112 deletions src/lib/scss/custom/pages/_chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,22 @@
.chat-head {
font-size: 1.1em;
padding: 2vmin 2%;
height: 10%;

.head-left {
display: flex;
flex-direction: column;
}
}

.chat-content {
height: 82%;
}

.chat-content-expand {
height: 98%;
}

.user-chat-nav-flex {
display: flex;
justify-content: flex-end;
Expand Down Expand Up @@ -168,114 +177,6 @@
display: flex;
flex-direction: column;
width: 80%;

.video-option-container {
display: flex;
flex-wrap: wrap;
gap: 5px;

.video-element-card {
border: none;
box-shadow: none;
flex: 1 1 300px;

.card-body {
padding: 0 !important;
}

.video-element-title {
font-size: 1.1em;
font-weight: 700;
padding-left: 5px;
padding-top: 10px;
padding-bottom: 10px;
margin-bottom: 5px;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.video-element-player {
aspect-ratio: 16 / 9;

video, iframe {
border-radius: 10px;
height: 100%;
}
}
}
}

.plain-option-container {
display: flex;
flex-wrap: wrap;

.btn:not([name="confirm"]) {
&:hover {
background-color: #fff;
color: var(--bs-primary);
}
}

.btn.active:hover {
background-color: var(--bs-primary);
color: #fff;
}

button {
min-width: 50px;
border-radius: 10px;
}
}

.complex-option-container {
display: flex;
flex-wrap: wrap;
gap: 3px;
margin-top: 10px;

.card-element {
flex: 1 1 50%;
border-radius: 10px;
border-width: 2px;
max-width: calc(50% - 2.5px);
margin-bottom: 0px;

@media (max-width: 620px) {
width: 100%;
max-width: 100%;
}

.card-element-body {
display: flex;
flex-direction: column;
justify-content: space-evenly;
gap: 5px;
padding: 10px 15px;

.card-element-title {
font-size: 0.8rem;
font-weight: 700;
}

.card-element-subtitle {
font-size: 0.7rem;
font-weight: 500;
}

.card-option-group {
margin-top: 5px;

.btn {
display: block;
margin-left: 0px !important;
border-radius: 10px;
}
}
}
}
}
}

.ctext-wrap {
Expand Down Expand Up @@ -388,6 +289,12 @@
.chat-input-section {
border-top: 1px solid var(--#{$prefix}border-color);
padding: 2vmin 2%;
height: 8%;
}

.chat-input-hide {
display: none;
height: 2%;
}

.chat-input {
Expand All @@ -398,10 +305,7 @@
padding-right: 1rem;
}

.chat-input-image {
padding-right: 4em;
}

// obsolete
.chat-input-links {
position: absolute;
right: 3px;
Expand All @@ -419,6 +323,20 @@
}
}

.chat-file-editor {
text-align: center;

li {
span {
font-size: 200%;
line-height: 36px;
padding: 0px 4px;
display: inline-block;
color: var(--bs-primary);
}
}
}

.chat-log {
height: 100vh;

Expand Down Expand Up @@ -628,4 +546,117 @@
font-size: 0.85em;
font-weight: 500;
color: var(--bs-secondary)
}

.center-option {
justify-content: center;
padding: 0px 10px;
}

.video-option-container {
display: flex;
flex-wrap: wrap;
gap: 5px;

.video-element-card {
border: none;
box-shadow: none;
flex: 1 1 300px;

.card-body {
padding: 0 !important;
}

.video-element-title {
font-size: 1.1em;
font-weight: 700;
padding-left: 5px;
padding-top: 10px;
padding-bottom: 10px;
margin-bottom: 5px;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.video-element-player {
aspect-ratio: 16 / 9;

video, iframe {
border-radius: 10px;
height: 100%;
}
}
}
}

.plain-option-container {
display: flex;
flex-wrap: wrap;

.btn:not([name="confirm"]) {
&:hover {
background-color: #fff;
color: var(--bs-primary);
}
}

.btn.active:hover {
background-color: var(--bs-primary);
color: #fff;
}

button {
min-width: 50px;
border-radius: 10px;
}
}

.complex-option-container {
display: flex;
flex-wrap: wrap;
gap: 3px;
margin-top: 10px;

.card-element {
flex: 1 1 50%;
border-radius: 10px;
border-width: 2px;
max-width: calc(50% - 2.5px);
margin-bottom: 0px;

@media (max-width: 620px) {
width: 100%;
max-width: 100%;
}

.card-element-body {
display: flex;
flex-direction: column;
justify-content: space-evenly;
gap: 5px;
padding: 10px 15px;

.card-element-title {
font-size: 0.8rem;
font-weight: 700;
}

.card-element-subtitle {
font-size: 0.7rem;
font-weight: 500;
}

.card-option-group {
margin-top: 5px;

.btn {
display: block;
margin-left: 0px !important;
border-radius: 10px;
}
}
}
}
}
Loading