diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 806391fe..fb3c6e96 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -351,6 +351,9 @@ li{ width: 68px !important; height: 68px !important; border-radius: 0px; + img{ + width: 100% !important; + } } .teacher-text{ width: 68px; diff --git a/src/assets/styles/portal-index.scss b/src/assets/styles/portal-index.scss index d2e73b66..4341f6f1 100644 --- a/src/assets/styles/portal-index.scss +++ b/src/assets/styles/portal-index.scss @@ -624,6 +624,9 @@ .el-avatar{ width: 26px !important; height: 26px !important; + img{ + width: 100% !important; + } } } .article-card-right{ @@ -666,6 +669,9 @@ .el-avatar{ width: 26px; height: 26px; + img{ + width: 100% !important; + } } } .article-info-time{ @@ -888,6 +894,9 @@ .el-avatar{ width: 34px; height: 34px; + img{ + width: 100% !important; + } } } } @@ -1067,6 +1076,9 @@ .el-avatar{ width: 32px !important; height: 32px !important; + img{ + width: 100% !important; + } } } .article-card-right{ diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index 8be888c9..289f8486 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -399,8 +399,11 @@ export default { // right: 48px; // } } - .el-avatar{ + ::v-deep.el-avatar{ margin-right: 8px; + img{ + width: 100% !important; + } } .el-button{ margin-left: 15px; diff --git a/src/layout/components/TopNav/Index.vue b/src/layout/components/TopNav/Index.vue index 800f09a0..fe1e379c 100644 --- a/src/layout/components/TopNav/Index.vue +++ b/src/layout/components/TopNav/Index.vue @@ -251,6 +251,12 @@ export default {