diff --git a/client/css/body.css b/client/css/body.css
index d094d8b..4569530 100644
--- a/client/css/body.css
+++ b/client/css/body.css
@@ -454,6 +454,7 @@ body {
top: 50%;
transform: translateY(-50%);
transition: transform 0.2s ease, color 0.2s ease;
+ z-index: 5;
}
.chat-attach-btn-abs:hover {
@@ -522,30 +523,49 @@ body {
padding: 0.7em 0.7em;
border-radius: 50px;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
- margin: 0px 0px 3px 10px;
- transition: all 0.2s ease;
+ margin: 0px 0px 3px 7px;
+ transition: all 0.3s ease;
+ z-index: 10;
}
.send-message-btn:hover {
- background: #fff;
- transition: all 0.6s;
+ transform: translateY(-2px);
+ transition: all 0.3s ease;
}
.send-message-btn:active {
- transform: scale(0.95);
- box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.15);
- transition: all 0.1s;
+ transform: scale(0.95) translateY(0px);
+ box-shadow: 0 0.3rem 0.8rem rgba(3, 169, 244, 0.2);
+ transition: all 0.1s ease;
}
.send-message-btn .text {
display: flex;
align-items: center;
justify-content: center;
fill: #fff;
- transition: all 0.2s;
+ transition: all 0.3s ease;
}
.send-message-btn:hover .text {
- fill: rgb(3, 169, 244);
- transition: all 0.6s;
+ transform: scale(1.05);
+ transition: all 0.3s ease;
}
.send-message-btn:active .text {
- fill: #fff;
- transition: all 0.1s;
+ transform: scale(0.95);
+ transition: all 0.1s ease;
}
+
+/* 确保发送按钮的点击区域不被其他元素遮挡 */
+.send-message-btn {
+ position: relative;
+ z-index: 10;
+}
+
+/* 确保发送按钮在所有父容器中都有足够的层级 */
+.chat-input-wrapper .send-message-btn {
+ position: relative;
+ z-index: 15;
+}
+
+/* 防止任何绝对定位的元素遮挡发送按钮 */
+.new-message-wrapper {
+ position: relative;
+ z-index: 1;
+}
\ No newline at end of file
diff --git a/client/css/style.css b/client/css/style.css
index 4bda2d0..ef576d2 100644
--- a/client/css/style.css
+++ b/client/css/style.css
@@ -25,7 +25,7 @@ flex-direction: column;
display: flex;
flex-direction: column;
box-shadow: 2px 0 8px #e0e0e0a0;
- transition: width 0.3s ease;
+ transition: opacity 0.3s ease;
}
.sidebar-user {
@@ -58,16 +58,25 @@ flex-direction: column;
display: block;
}
-/* New settings sidebar styles */
+/* Settings sidebar overlay styles */
.settings-sidebar {
width: 250px;
background: #fff;
border-right: 1px solid #e0e0e0;
display: flex;
flex-direction: column;
- box-shadow: 2px 0 8px #e0e0e0a0;
- transition: width 0.3s ease;
- position: relative;
+ box-shadow: 2px 0 10px #e0e0e0a0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ z-index: 1000;
+ transform: translateX(-100%);
+ transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
+}
+
+.settings-sidebar.open {
+ transform: translateX(0);
}
.settings-header {
@@ -544,7 +553,7 @@ flex-direction: column;
.chat-area {
flex: 1;
overflow-y: auto;
- padding: 32px 24px 24px 24px;
+ padding: 15px 15px 15px 15px;
display: flex;
flex-direction: column;
background: none;
diff --git a/client/index.html b/client/index.html
index 4060f40..e8c7a54 100644
--- a/client/index.html
+++ b/client/index.html
@@ -7,18 +7,17 @@
-
-
-
+
+
-
-
+
+
-
-
+
+