mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
admin msg html tags fix, added X to close modals
This commit is contained in:
parent
0e59785c3c
commit
e9e9f94130
4 changed files with 28 additions and 5 deletions
|
@ -89,7 +89,7 @@ export default function Layout({
|
||||||
</div>
|
</div>
|
||||||
{sidebarOpen ? (
|
{sidebarOpen ? (
|
||||||
<>
|
<>
|
||||||
<div id="sideBarLinks">
|
<div id="sideBarLinks" className="sidebarLinks">
|
||||||
{Object.keys(tabs).map((key) => {
|
{Object.keys(tabs).map((key) => {
|
||||||
const item = tabs[key]
|
const item = tabs[key]
|
||||||
return (
|
return (
|
||||||
|
@ -178,7 +178,9 @@ export default function Layout({
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div style={{ textAlign: 'center' }}>Üzenet admintól:</div>
|
<div style={{ textAlign: 'center' }}>Üzenet admintól:</div>
|
||||||
<div>{userSpecificMotd.msg}</div>
|
<div
|
||||||
|
dangerouslySetInnerHTML={{ __html: userSpecificMotd.msg }}
|
||||||
|
/>
|
||||||
</Modal>
|
</Modal>
|
||||||
) : null}
|
) : null}
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -36,6 +36,16 @@ export default function Modal(props) {
|
||||||
}}
|
}}
|
||||||
className={styles.modalContent}
|
className={styles.modalContent}
|
||||||
>
|
>
|
||||||
|
{closeClick && (
|
||||||
|
<div
|
||||||
|
className={styles.close}
|
||||||
|
onClick={() => {
|
||||||
|
closeClick()
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
❌
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -20,3 +20,14 @@
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
cursor: auto;
|
cursor: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.close {
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 18px;
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
right: 10px;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ a {
|
||||||
padding: 1px 16px;
|
padding: 1px 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar a {
|
.sidebarLinks a {
|
||||||
display: block;
|
display: block;
|
||||||
color: black;
|
color: black;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
|
@ -50,12 +50,12 @@ a {
|
||||||
color: var(--bright-color);
|
color: var(--bright-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar a.active {
|
.sidebarLinks a.active {
|
||||||
background-color: var(--text-color);
|
background-color: var(--text-color);
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar a:hover:not(.active) {
|
.sidebarLinks a:hover:not(.active) {
|
||||||
background-color: #555;
|
background-color: #555;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue