Spaces:
Runtime error
Runtime error
Mark-Lasfar commited on
Commit ·
68a494a
1
Parent(s): b85c898
add chat
Browse files- static/css/chat/bubble.css +10 -5
- static/css/chat/style.css +6 -3
- static/css/style.css +3 -2
- static/css/webkit.css +14 -0
static/css/chat/bubble.css
CHANGED
|
@@ -4,28 +4,29 @@
|
|
| 4 |
*/
|
| 5 |
|
| 6 |
.bubble {
|
| 7 |
-
display: block;
|
| 8 |
align-self: flex-start;
|
| 9 |
background: #1f1f1f;
|
| 10 |
color: #e8e8e8;
|
| 11 |
-
border-radius: var(--bubble-radius);
|
| 12 |
line-height: 1.5;
|
| 13 |
white-space: normal;
|
| 14 |
font-family: 'Inter', sans-serif;
|
| 15 |
font-size: 0.95rem;
|
| 16 |
position: relative;
|
| 17 |
-
opacity: 1; /* إزالة أي خفاء افتراضي */
|
| 18 |
-
animation: bubbleAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
| 19 |
margin: 0.75rem 0;
|
| 20 |
overflow-wrap: break-word;
|
| 21 |
word-break: break-word;
|
| 22 |
vertical-align: middle;
|
| 23 |
-
padding: 1rem
|
| 24 |
box-sizing: border-box;
|
| 25 |
max-width: 100%;
|
| 26 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
| 27 |
border: 1px solid rgba(255, 255, 255, 0.05);
|
| 28 |
transition: all 0.3s ease;
|
|
|
|
| 29 |
}
|
| 30 |
|
| 31 |
.bubble:hover {
|
|
@@ -34,6 +35,10 @@
|
|
| 34 |
}
|
| 35 |
|
| 36 |
@keyframes bubbleAppear {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
to {
|
| 38 |
opacity: 1;
|
| 39 |
transform: translateY(0);
|
|
|
|
| 4 |
*/
|
| 5 |
|
| 6 |
.bubble {
|
| 7 |
+
display: block !important; /* إجبار العرض لتجنب التعارض مع hidden */
|
| 8 |
align-self: flex-start;
|
| 9 |
background: #1f1f1f;
|
| 10 |
color: #e8e8e8;
|
| 11 |
+
border-radius: var(--bubble-radius, 1rem);
|
| 12 |
line-height: 1.5;
|
| 13 |
white-space: normal;
|
| 14 |
font-family: 'Inter', sans-serif;
|
| 15 |
font-size: 0.95rem;
|
| 16 |
position: relative;
|
| 17 |
+
opacity: 1 !important; /* إزالة أي خفاء افتراضي */
|
| 18 |
+
animation: bubbleAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* الاحتفاظ بالأنيميشن لكن بدون تأخير */
|
| 19 |
margin: 0.75rem 0;
|
| 20 |
overflow-wrap: break-word;
|
| 21 |
word-break: break-word;
|
| 22 |
vertical-align: middle;
|
| 23 |
+
padding: 1rem;
|
| 24 |
box-sizing: border-box;
|
| 25 |
max-width: 100%;
|
| 26 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
| 27 |
border: 1px solid rgba(255, 255, 255, 0.05);
|
| 28 |
transition: all 0.3s ease;
|
| 29 |
+
min-height: 20px; /* ضمان ارتفاع أدنى للظهور */
|
| 30 |
}
|
| 31 |
|
| 32 |
.bubble:hover {
|
|
|
|
| 35 |
}
|
| 36 |
|
| 37 |
@keyframes bubbleAppear {
|
| 38 |
+
from {
|
| 39 |
+
opacity: 0;
|
| 40 |
+
transform: translateY(10px);
|
| 41 |
+
}
|
| 42 |
to {
|
| 43 |
opacity: 1;
|
| 44 |
transform: translateY(0);
|
static/css/chat/style.css
CHANGED
|
@@ -19,6 +19,7 @@
|
|
| 19 |
html {
|
| 20 |
-webkit-text-size-adjust: 100%;
|
| 21 |
}
|
|
|
|
| 22 |
.chat-controls {
|
| 23 |
display: flex;
|
| 24 |
align-items: center;
|
|
@@ -34,7 +35,7 @@ html {
|
|
| 34 |
|
| 35 |
#chatArea {
|
| 36 |
flex: 1;
|
| 37 |
-
display: flex;
|
| 38 |
flex-direction: column;
|
| 39 |
overflow-y: auto;
|
| 40 |
width: 100%;
|
|
@@ -44,18 +45,20 @@ html {
|
|
| 44 |
word-wrap: break-word;
|
| 45 |
word-break: break-word;
|
| 46 |
max-width: 100%;
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
#chatBox {
|
| 50 |
-
display: flex;
|
| 51 |
flex-direction: column;
|
| 52 |
width: 100%;
|
| 53 |
height: 100%;
|
| 54 |
overflow-y: auto;
|
| 55 |
-
padding: 0.75rem 0.75rem calc(var(--footer-height) + 1rem) 1rem;
|
| 56 |
box-sizing: border-box;
|
| 57 |
max-width: 100%;
|
| 58 |
overflow-wrap: break-word;
|
| 59 |
word-wrap: break-word;
|
| 60 |
word-break: break-word;
|
|
|
|
| 61 |
}
|
|
|
|
| 19 |
html {
|
| 20 |
-webkit-text-size-adjust: 100%;
|
| 21 |
}
|
| 22 |
+
|
| 23 |
.chat-controls {
|
| 24 |
display: flex;
|
| 25 |
align-items: center;
|
|
|
|
| 35 |
|
| 36 |
#chatArea {
|
| 37 |
flex: 1;
|
| 38 |
+
display: flex !important; /* إجبار العرض */
|
| 39 |
flex-direction: column;
|
| 40 |
overflow-y: auto;
|
| 41 |
width: 100%;
|
|
|
|
| 45 |
word-wrap: break-word;
|
| 46 |
word-break: break-word;
|
| 47 |
max-width: 100%;
|
| 48 |
+
min-height: 0; /* لمنع الانهيار في flex */
|
| 49 |
}
|
| 50 |
|
| 51 |
#chatBox {
|
| 52 |
+
display: flex !important; /* إجبار العرض */
|
| 53 |
flex-direction: column;
|
| 54 |
width: 100%;
|
| 55 |
height: 100%;
|
| 56 |
overflow-y: auto;
|
| 57 |
+
padding: 0.75rem 0.75rem calc(var(--footer-height, 5rem) + 1rem) 1rem;
|
| 58 |
box-sizing: border-box;
|
| 59 |
max-width: 100%;
|
| 60 |
overflow-wrap: break-word;
|
| 61 |
word-wrap: break-word;
|
| 62 |
word-break: break-word;
|
| 63 |
+
min-height: 0; /* للتمدد الصحيح */
|
| 64 |
}
|
static/css/style.css
CHANGED
|
@@ -18,6 +18,7 @@ html, body {
|
|
| 18 |
-webkit-font-smoothing: antialiased;
|
| 19 |
-moz-osx-font-smoothing: grayscale;
|
| 20 |
}
|
|
|
|
| 21 |
#chatArea {
|
| 22 |
flex: 1;
|
| 23 |
min-height: 0; /* لمنع الانهيار */
|
|
@@ -27,8 +28,8 @@ html, body {
|
|
| 27 |
body {
|
| 28 |
display: flex;
|
| 29 |
flex-direction: column;
|
| 30 |
-
background-color: var(--background-dark);
|
| 31 |
-
color: var(--text-dark);
|
| 32 |
overflow: hidden;
|
| 33 |
word-wrap: break-word;
|
| 34 |
}
|
|
|
|
| 18 |
-webkit-font-smoothing: antialiased;
|
| 19 |
-moz-osx-font-smoothing: grayscale;
|
| 20 |
}
|
| 21 |
+
|
| 22 |
#chatArea {
|
| 23 |
flex: 1;
|
| 24 |
min-height: 0; /* لمنع الانهيار */
|
|
|
|
| 28 |
body {
|
| 29 |
display: flex;
|
| 30 |
flex-direction: column;
|
| 31 |
+
background-color: var(--background-dark, #0f0f0f);
|
| 32 |
+
color: var(--text-dark, #e5e7eb);
|
| 33 |
overflow: hidden;
|
| 34 |
word-wrap: break-word;
|
| 35 |
}
|
static/css/webkit.css
CHANGED
|
@@ -24,4 +24,18 @@
|
|
| 24 |
|
| 25 |
* {
|
| 26 |
-webkit-tap-highlight-color: transparent;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
|
|
|
| 24 |
|
| 25 |
* {
|
| 26 |
-webkit-tap-highlight-color: transparent;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
/* إضافة للتوافق مع #chatBox */
|
| 30 |
+
#chatBox::-webkit-scrollbar {
|
| 31 |
+
width: 6px;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
#chatBox::-webkit-scrollbar-track {
|
| 35 |
+
background: transparent;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
#chatBox::-webkit-scrollbar-thumb {
|
| 39 |
+
background: rgba(255, 255, 255, 0.3);
|
| 40 |
+
border-radius: 3px;
|
| 41 |
}
|