提交 d7eabc0e 编写于 作者: DCloud_JSON's avatar DCloud_JSON

更新 优化样式

上级 4063319c
...@@ -573,6 +573,10 @@ ...@@ -573,6 +573,10 @@
.uni-im-list-item { .uni-im-list-item {
transform: scale(1, -1); transform: scale(1, -1);
.uni-im-msg {
width: 0;
flex-grow: 1;
}
} }
/* #ifdef H5 */ /* #ifdef H5 */
@media screen and (min-device-width:960px) { @media screen and (min-device-width:960px) {
......
...@@ -172,15 +172,13 @@ ...@@ -172,15 +172,13 @@
<style lang="scss"> <style lang="scss">
.uni-im-rich-text { .uni-im-rich-text {
/* #ifdef H5 */
display: inline-block; display: inline-block;
background-color: #fff; background-color: #fff;
padding: 10px; padding: 10px;
border-radius: 10px; border-radius: 10px;
max-width: 550rpx; max-width: 100%;
/* #ifdef H5 */
@media screen and (min-device-width:960px) { @media screen and (min-device-width:960px) {
max-width: 100%;
.img { .img {
max-width: 480px !important; max-width: 480px !important;
} }
......
...@@ -91,7 +91,6 @@ ...@@ -91,7 +91,6 @@
.msg-text { .msg-text {
padding: 10px; padding: 10px;
font-size: 15px; font-size: 15px;
justify-content: space-between;
word-break: break-all; word-break: break-all;
cursor: text; cursor: text;
/* #ifdef H5 */ /* #ifdef H5 */
......
...@@ -384,73 +384,67 @@ ...@@ -384,73 +384,67 @@
<style lang="scss"> <style lang="scss">
.uni-im-msg { .uni-im-msg {
position: relative; position: relative;
flex: 1;
/* #ifdef H5 */
width: 100%; width: 100%;
/* #endif */
/* #ifdef MP */
width: 750rpx;
/* #endif */
.msg-box { .msg-box {
position: relative;
flex-direction: row; flex-direction: row;
justify-content: flex-start; justify-content: flex-start;
padding: 0 8px; margin: 8px;
margin: 8px 0; /* #ifdef H5 */
position: relative; &,& > * {
width: 100%; cursor: default;
} }
.file-msg-box,
/* #ifdef H5 */ .cloud-image {
.msg-box, cursor: pointer;
.msg-box * { }
cursor: default; /* #endif */
} .msg-main {
.file-msg-box, margin: 0 8px;
.cloud-image { margin-right: 40px;
cursor: pointer; align-items: flex-start;
} width: 0;
/* #endif */ flex-grow: 1;
.msg-content-box {
.msg-main { flex-direction: row;
width: 80%; align-items: center;
margin: 0 8px; justify-content: flex-start;
// overflow: hidden; }
}
/* 回复引用某条消息提示框 */ /* 回复引用某条消息提示框 */
.cite-box { .cite-box {
margin:8px 0; margin:8px 0;
margin-right: auto; background-color: #e3e3e3;
background-color: #e3e3e3; color: #6a6a6a;
color: #6a6a6a; border-radius: 5px;
border-radius: 5px; max-width: 100%;
max-width: 100%; justify-content: center;
justify-content: center; padding: 5px 10px;
padding: 5px 10px; .cite-box-text {
} white-space: nowrap;
.self .cite-box { overflow: hidden;
margin-right: 0; text-overflow: ellipsis;
margin-left: auto; font-size: 14px;
}
}
}
} }
.cite-box-text { &.self {
white-space: nowrap; .msg-box {
overflow: hidden; flex-direction: row-reverse;
text-overflow: ellipsis; }
font-size: 14px; .msg-main {
} align-items: flex-end;
margin-right: 8px;
margin-left: 40px;
}
.msg-content-box {
justify-content: flex-end;
}
}
.self .msg-main {
align-items: flex-end;
}
.msg-content-box {
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.self .msg-content-box {
justify-content: flex-end;
}
.nickname-box { .nickname-box {
flex-direction: row; flex-direction: row;
...@@ -500,9 +494,6 @@ ...@@ -500,9 +494,6 @@
.msgStateIcon { .msgStateIcon {
margin-right: 5px; margin-right: 5px;
} }
&.self .msg-box {
flex-direction: row-reverse;
}
.revoke-text-box { .revoke-text-box {
flex-direction: row; flex-direction: row;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册