提交 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;
@media screen and (min-device-width:960px) {
max-width: 100%; max-width: 100%;
/* #ifdef H5 */
@media screen and (min-device-width:960px) {
.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,25 +384,14 @@ ...@@ -384,25 +384,14 @@
<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;
position: relative;
width: 100%;
}
/* #ifdef H5 */ /* #ifdef H5 */
.msg-box, &,& > * {
.msg-box * {
cursor: default; cursor: default;
} }
.file-msg-box, .file-msg-box,
...@@ -410,47 +399,52 @@ ...@@ -410,47 +399,52 @@
cursor: pointer; cursor: pointer;
} }
/* #endif */ /* #endif */
.msg-main { .msg-main {
width: 80%;
margin: 0 8px; margin: 0 8px;
// overflow: hidden; margin-right: 40px;
align-items: flex-start;
width: 0;
flex-grow: 1;
.msg-content-box {
flex-direction: row;
align-items: center;
justify-content: flex-start;
} }
/* 回复引用某条消息提示框 */ /* 回复引用某条消息提示框 */
.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;
}
.self .cite-box {
margin-right: 0;
margin-left: auto;
}
.cite-box-text { .cite-box-text {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
font-size: 14px; font-size: 14px;
} }
}
}
}
.self .msg-main { &.self {
.msg-box {
flex-direction: row-reverse;
}
.msg-main {
align-items: flex-end; align-items: flex-end;
margin-right: 8px;
margin-left: 40px;
} }
.msg-content-box { .msg-content-box {
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.self .msg-content-box {
justify-content: flex-end; 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.
先完成此消息的编辑!
想要评论请 注册