| xqd
@@ -18,7 +18,7 @@ class ChatLog extends LazyRenderable
|
|
|
$grid->column('From_Account','用户1')->display(function ($res){
|
|
|
$user = User::query()->where('tencent_im_user_id',$res)->with("user_info")->first();
|
|
|
$str = "";
|
|
|
- $str.="<div style='margin-right:10px;text-align: center'>";
|
|
|
+ $str.="<div style='margin-right:10px;text-align: center;display: flex'>";
|
|
|
$str.='<img data-action="preview-img" src="'.$user->user_info->avatar.'" style="max-width:50px;max-height:50px;cursor:pointer" class="img img-thumbnail">';
|
|
|
$str.='<p style="margin-top: 5px">'.$user->user_info->nickname.'</p>';
|
|
|
$str.="</div>";
|
| xqd
@@ -27,7 +27,7 @@ class ChatLog extends LazyRenderable
|
|
|
$grid->column('To_Account','用户2')->display(function ($res){
|
|
|
$user = User::query()->where('tencent_im_user_id',$res)->with("user_info")->first();
|
|
|
$str = "";
|
|
|
- $str.="<div style='margin-right:10px;text-align: center'>";
|
|
|
+ $str.="<div style='margin-right:10px;text-align: center;display: flex'>";
|
|
|
$str.='<img data-action="preview-img" src="'.$user->user_info->avatar.'" style="max-width:50px;max-height:50px;cursor:pointer" class="img img-thumbnail">';
|
|
|
$str.='<p style="margin-top: 5px">'.$user->user_info->nickname.'</p>';
|
|
|
$str.="</div>";
|