mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Rework of page "ranklist" (part2), /style fixed delete, show comments buttons on index.js/
This commit is contained in:
parent
7f4163736c
commit
e311b88508
6 changed files with 78 additions and 36 deletions
|
@ -45,8 +45,8 @@ function Comment({ comment, index, onComment, onDelete, onReact, uid }) {
|
|||
const commentStyle = admin
|
||||
? styles.adminComment
|
||||
: own
|
||||
? styles.ownComment
|
||||
: ''
|
||||
? styles.ownComment
|
||||
: ''
|
||||
|
||||
return (
|
||||
<div className={styles.comment}>
|
||||
|
@ -222,9 +222,7 @@ export default function Comments({
|
|||
<span className={styles.comment_bttn}>
|
||||
{commentCount === 0
|
||||
? 'Új komment'
|
||||
: `További ${commentCount} komment${
|
||||
commentCount > 1 ? ' mutatása' : ''
|
||||
}`}
|
||||
: `Kommentek mutatása (${commentCount})`}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -38,6 +38,7 @@ export default function NewsEntry({
|
|||
<div className={'actions'}>
|
||||
{uid === user ? (
|
||||
<span
|
||||
className={styles.delete_bttn}
|
||||
onClick={() => {
|
||||
onPostDelete()
|
||||
}}
|
||||
|
|
|
@ -21,6 +21,16 @@
|
|||
margin: 5px 5px;
|
||||
}
|
||||
|
||||
.delete_bttn {
|
||||
font-size: 15px;
|
||||
margin-top: 12px !important;
|
||||
margin-left: 2px !important;
|
||||
margin-right: 5px !important;
|
||||
padding-top: 4px !important;
|
||||
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
||||
}
|
||||
|
||||
|
||||
.adminPost {
|
||||
border-left: 4px solid var(--text-color);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue