diff --git a/src/admin/review/review.css b/src/admin/review/review.css
index a1ab715..e132479 100644
--- a/src/admin/review/review.css
+++ b/src/admin/review/review.css
@@ -14,7 +14,7 @@
cursor: zoom-in;
}
.review-img > img {
- /* max-height: 300px; */
+ max-height: 300px;
max-width: 800px;
}
diff --git a/src/components/UploadUnit/upload.css b/src/components/UploadUnit/upload.css
index dbdc8c8..5f93ba0 100644
--- a/src/components/UploadUnit/upload.css
+++ b/src/components/UploadUnit/upload.css
@@ -99,5 +99,4 @@
}
.scaled-wrap > img {
transition: transform .3s ease-out;
- transform-origin: top left;
}
\ No newline at end of file
diff --git a/src/components/UserControl/UserControl.js b/src/components/UserControl/UserControl.js
index 817409b..f6ed8dc 100644
--- a/src/components/UserControl/UserControl.js
+++ b/src/components/UserControl/UserControl.js
@@ -23,13 +23,15 @@ export default function UserControl(props) {
}}
>退出审核
- ) : (
+ )
+ : (
{
userData.role === -1
? (
- ) : (
+ )
+ : (
diff --git a/src/index/index.css b/src/index/index.css
index 10db512..ec2874f 100644
--- a/src/index/index.css
+++ b/src/index/index.css
@@ -22,12 +22,12 @@
margin: 0 5px;
}
.card-header {
- padding: .75em .5em;
- font-size: 18px;
+ padding: .5em;
+ font-size: 20px;
border-bottom: 1px solid #e6e6e6;
}
.card-body {
- padding: 10px;
+ padding: 10px 5px;
}
.split-lg {
@@ -36,6 +36,39 @@
flex-wrap: wrap;
}
+.img-list {
+ width: 100%;
+ display: flex;
+ flex-wrap: wrap;
+ margin: -3px -5px;
+ align-items: flex-start;
+}
+.img-list > img {
+ width: 200px;
+ margin: 3px 5px;
+}
+
+.message-list {
+ margin: 0;
+ padding-left: 0;
+ list-style: none;
+}
+.message-list > li {
+ line-height: 20px;
+ padding: 8px 0;
+ position: relative;
+}
+/* list disk */
+.message-list > li::before {
+ content: "";
+ width: 8px;
+ height: 8px;
+ background-color: #DADADA;
+ margin-right: 10px;
+ border-radius: 50%;
+ display: inline-block;
+}
+
@media (max-width: 980px) {
.split-lg > .card {
width: 100%;
diff --git a/src/index/index.js b/src/index/index.js
index cf18a5d..2fc84f3 100644
--- a/src/index/index.js
+++ b/src/index/index.js
@@ -48,14 +48,21 @@ export class AppContainer extends Component {
{
this.state.fetchingEssential
- ?
- : (this.state.essentialMessages.length === 0
- ? (
暂时没有精选留言
)
+ ? (
+
+ )
+ : (
+ this.state.essentialMessages.length === 0
+ ? (
+
暂时没有精选留言
+ )
: (
- {this.state.essentialMessages.map(msg => (
-
- ))}
+ {
+ this.state.essentialMessages.map((msg, i) => (
+
+ ))
+ }
)
)
@@ -69,12 +76,23 @@ export class AppContainer extends Component {
{
this.state.fetchingEssential
- ?
- : (this.state.essentialImages.length === 0
- ? (
暂时没有精选图片
)
- : this.state.essentialImages.map(src => (
-

- ))
+ ? (
+
+ )
+ : (
+ this.state.essentialImages.length === 0
+ ? (
+
暂时没有精选图片
+ )
+ : (
+
+ {
+ this.state.essentialImages.map((src, i) => (
+

+ ))
+ }
+
+ )
)
}