File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 99 <td class =" chat-name-td" :style =" {color: colors.chatList.text}" >
1010 {{ chat.name }}
1111 </td >
12- <td >
12+ <td class = " badge-td " >
1313 <svg width =" 22px" height =" 22px" viewBox =" 0 0 32 32" class =" bi bi-circle-fill chat-badge" :fill =" chat.unreadCount ? colors.chatListBadge.bg : colors.chatList.bg" xmlns =" http://www.w3.org/2000/svg" >
1414 <circle cx =" 16" cy =" 16" r =" 16" />
1515 <text x =" 50%" y =" 55%" dominant-baseline =" middle" text-anchor =" middle" :fill =" chat.unreadCount ? colors.chatListBadge.text : colors.chatList.bg" >
@@ -46,31 +46,44 @@ export default {
4646
4747<style scoped>
4848.chat-list {
49+ box-sizing : border-box ;
4950 height : 100% ;
5051 overflow : auto ;
51- padding-left : 5px ;
52+ padding-left : 10px ;
53+ padding-right : 10px ;
5254 padding-top : 8px ;
5355}
5456.chat-img-td {
57+ box-sizing : border-box ;
5558 text-align : center ;
5659 width : 50px ;
5760}
5861.chat-img {
62+ box-sizing : border-box ;
5963 border-radius : 50% ;
6064 width : 50px ;
6165 margin-right : 5px ;
6266 display : block ;
6367}
6468.chat-name-td {
69+ box-sizing : border-box ;
6570 font-size : 20px ;
6671 vertical-align : middle ;
6772 text-align : left ;
6873}
74+ .badge-td {
75+ box-sizing : border-box ;
76+ vertical-align : middle ;
77+ text-align : center ;
78+ width : 24px ;
79+ }
6980.chat-badge {
81+ box-sizing : border-box ;
7082 font-size : 17px ;
7183}
7284table {
73- width : 100%
85+ box-sizing : border-box ;
86+ width : 100% ;
7487}
7588tr > td {
7689 padding-top : 5px ;
You can’t perform that action at this time.
0 commit comments