mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
Add styles for chat element
This commit is contained in:
@@ -1,3 +1,21 @@
|
|||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: #121212;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: #EF4444;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #b30000;
|
||||||
|
}
|
||||||
|
|
||||||
.chat {
|
.chat {
|
||||||
margin: 1% 3.2% 0 0;
|
margin: 1% 3.2% 0 0;
|
||||||
}
|
}
|
||||||
@@ -37,13 +55,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chat__content--users {
|
.chat__content--users {
|
||||||
height: 650px;
|
height: 590px;
|
||||||
width: auto;
|
width: auto;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat__content, .chat__content--users {
|
.chat__content,
|
||||||
|
.chat__content--users {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,10 +75,13 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-enter-active, .fade-leave-active {
|
.fade-enter-active,
|
||||||
|
.fade-leave-active {
|
||||||
transition: opacity 0.1s, transform 0.1s;
|
transition: opacity 0.1s, transform 0.1s;
|
||||||
}
|
}
|
||||||
.fade-enter, .fade-leave-to {
|
|
||||||
|
.fade-enter,
|
||||||
|
.fade-leave-to {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(20px);
|
transform: translateY(20px);
|
||||||
}
|
}
|
||||||
@@ -90,7 +112,8 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
margin: 24% 87% 6% 6%;
|
margin: 24% 87% 6% 6%;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
|
width: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.write__content {
|
.write__content {
|
||||||
@@ -106,6 +129,39 @@
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* .write__content textarea {
|
||||||
|
padding: 14px 25% 14px 12px;
|
||||||
|
border-radius: 13px;
|
||||||
|
background: #22252F;
|
||||||
|
color: #A9A99D;
|
||||||
|
border: none;
|
||||||
|
} */
|
||||||
|
/* .write__content textarea {
|
||||||
|
padding: 14px 12px;
|
||||||
|
border-radius: 13px;
|
||||||
|
background: #22252F;
|
||||||
|
color: #A9A99D;
|
||||||
|
border: none;
|
||||||
|
width: 600px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
resize: vertical;
|
||||||
|
} */
|
||||||
|
|
||||||
|
.write__content textarea {
|
||||||
|
padding: 14px 12px;
|
||||||
|
border-radius: 13px;
|
||||||
|
background: #22252F;
|
||||||
|
color: #A9A99D;
|
||||||
|
border: none;
|
||||||
|
width: 600px; /* или другое значение, которое вы хотите использовать */
|
||||||
|
box-sizing: border-box;
|
||||||
|
resize: none; /* Убирает ручку изменения размера */
|
||||||
|
}
|
||||||
|
|
||||||
|
.write__content textarea:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
.write__content input::placeholder {
|
.write__content input::placeholder {
|
||||||
color: #A9A99D;
|
color: #A9A99D;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
@@ -115,7 +171,8 @@
|
|||||||
|
|
||||||
.write__content button {
|
.write__content button {
|
||||||
padding: 8px 9px;
|
padding: 8px 9px;
|
||||||
margin-left: -20%;
|
/* margin-left: -20%; */
|
||||||
|
margin-right: -5%;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background: #3D3F48;
|
background: #3D3F48;
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
@@ -1,13 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="write">
|
<div class="write">
|
||||||
<div class="write__content">
|
<div class="write__content">
|
||||||
<input
|
<!-- <input
|
||||||
type="text"
|
type="text"
|
||||||
@keyup.enter="sendmsgDataEnter"
|
@keyup.enter="sendmsgDataEnter"
|
||||||
v-model.trim="msg"
|
v-model.trim="msg"
|
||||||
placeholder="Напишите сообщение..."
|
placeholder="Напишите сообщение..."
|
||||||
maxlength="200"
|
maxlength="200"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
|
<textarea
|
||||||
|
@keyup.enter="sendmsgDataEnter"
|
||||||
|
v-model.trim="msg"
|
||||||
|
placeholder="Напишите сообщение..."
|
||||||
|
maxlength="200"
|
||||||
|
rows="3"
|
||||||
|
></textarea>
|
||||||
<button :disabled="CheckerforBtn()" type="submit" @click="SendmsgData">
|
<button :disabled="CheckerforBtn()" type="submit" @click="SendmsgData">
|
||||||
<img src="@/assets/icons-chat/sendmsg-icon.png" />
|
<img src="@/assets/icons-chat/sendmsg-icon.png" />
|
||||||
</button>
|
</button>
|
||||||
@@ -41,8 +49,8 @@ export default {
|
|||||||
|
|
||||||
InsertSpaceEvery24Chars(word) {
|
InsertSpaceEvery24Chars(word) {
|
||||||
let result = "";
|
let result = "";
|
||||||
for (let i = 0; i < word.length; i += 24) {
|
for (let i = 0; i < word.length; i += 22) {
|
||||||
result += word.substring(i, i + 24) + " ";
|
result += word.substring(i, i + 22) + " ";
|
||||||
}
|
}
|
||||||
return result.trim();
|
return result.trim();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user