Skip to content

Commit

Permalink
feat: enhance chat UI by removing default margin, preventing overflow…
Browse files Browse the repository at this point in the history
…, and ensuring consistent box-sizing
  • Loading branch information
milyin committed Dec 12, 2024
1 parent ed12230 commit 5565324
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions zenoh-ts/examples/chat/assets/index.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
body {
font-family: Arial, sans-serif;
margin: 0; /* Remove default margin */
overflow: hidden; /* Prevent vertical scrollbar */
}

.chat-container {
display: flex;
flex-direction: column;
height: 100vh;
box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.server-panel {
Expand All @@ -16,6 +19,7 @@ body {
background-color: #f0f0f0;
border-radius: 8px; /* Round corners */
margin-bottom: 10px; /* Small padding around */
box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.server-panel label {
Expand All @@ -30,6 +34,7 @@ body {
display: flex;
flex: 1;
overflow: hidden; /* Prevent overflow */
box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.user-list {
Expand All @@ -40,6 +45,7 @@ body {
background-color: #f0f0f0;
border-radius: 8px; /* Round corners */
margin-right: 10px; /* Small padding around */
box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.chat-panel {
Expand All @@ -50,6 +56,7 @@ body {
overflow-y: auto; /* Make chat panel scrollable */
background-color: #f0f0f0;
border-radius: 8px; /* Round corners */
box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.chat-log {
Expand All @@ -60,11 +67,13 @@ body {
margin-bottom: 10px;
background-color: #fff;
border-radius: 8px; /* Round corners */
box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.chat-input {
display: flex;
margin-bottom: 10px; /* Add space below message input field */
box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.chat-input input {
Expand Down Expand Up @@ -101,6 +110,7 @@ body {
overflow-y: auto;
background-color: #fff;
border-radius: 8px; /* Round corners */
box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.toggle-log-panel {
Expand Down

0 comments on commit 5565324

Please sign in to comment.