{{ content }}
diff --git a/src/assets/css/community/community.css b/src/assets/css/community/community.css index 4249fe2c..9cb0a82d 100644 --- a/src/assets/css/community/community.css +++ b/src/assets/css/community/community.css @@ -113,10 +113,10 @@ overflow-y: auto; /* 允许垂直滚动 */ } /* 隐藏滚动条 */ -.middle::-webkit-scrollbar { - width: 0px; /* 隐藏水平滚动条 */ - height: 0px; /* 隐藏垂直滚动条 */ -} +/* .middle::-webkit-scrollbar { + width: 0px; + height: 0px; +} */ .follows { cursor: pointer; transition: background-color 0.3s ease; @@ -134,6 +134,31 @@ background-color: #d0d0d0; cursor: pointer; } + + +.refresh-btn { + background-color: transparent; + border: none; + cursor: pointer; + outline: none; + padding: 0; + position: relative; + transition: transform 0.3s ease-in-out; +} + +.refresh-btn .refresh-icon { + fill: #FE4E96; /* 设置箭头颜色 */ + transition: transform 0.3s ease-in-out; +} + +/* 点击按钮时的动画效果 */ +.refresh-btn.clicked .refresh-icon { + transform: rotate(360deg); /* 旋转动画 */ +} + +.refresh-btn.clicked { + transform: scale(0.9); /* 按钮缩小 */ +} .post-list { } diff --git a/src/components/CommentInput.vue b/src/views/community/CommentInput.vue similarity index 100% rename from src/components/CommentInput.vue rename to src/views/community/CommentInput.vue diff --git a/src/components/PostCard.vue b/src/views/community/PostCard.vue similarity index 62% rename from src/components/PostCard.vue rename to src/views/community/PostCard.vue index 7ec46703..f9fecb2d 100644 --- a/src/components/PostCard.vue +++ b/src/views/community/PostCard.vue @@ -16,17 +16,17 @@ {{ timestamp }} - - - + + +
{{ content }}
{{ comment.username }}: {{ comment.text }}
+{{ comment.userid}}: {{ comment.content }}