Fixed admin panel

This commit is contained in:
SamTv12345 2024-09-13 15:44:19 +02:00
parent 178fe7c24d
commit 08f199178d
2 changed files with 5 additions and 4 deletions

View file

@ -94,7 +94,9 @@ export const App = () => {
<Crown width={40} height={40}/> <Crown width={40} height={40}/>
<h1>Etherpad</h1> <h1>Etherpad</h1>
</span> </span>
<ul> <ul onClick={()=>{
setSidebarOpen(false)
}}>
<li><NavLink to="/plugins"><Cable/><Trans i18nKey="admin_plugins"/></NavLink></li> <li><NavLink to="/plugins"><Cable/><Trans i18nKey="admin_plugins"/></NavLink></li>
<li><NavLink to={"/settings"}><Wrench/><Trans i18nKey="admin_settings"/></NavLink></li> <li><NavLink to={"/settings"}><Wrench/><Trans i18nKey="admin_settings"/></NavLink></li>
<li><NavLink to={"/help"}> <Construction/> <Trans i18nKey="admin_plugins_info"/></NavLink></li> <li><NavLink to={"/help"}> <Construction/> <Trans i18nKey="admin_plugins_info"/></NavLink></li>

View file

@ -129,7 +129,7 @@ div.innerwrapper {
height: 100vh; height: 100vh;
flex-grow: 100; flex-grow: 100;
margin-left: var(--sidebar-width); margin-left: var(--sidebar-width);
padding: 20px; padding: 20px 20px 20px;
} }
div.innerwrapper-err { div.innerwrapper-err {
@ -346,7 +346,6 @@ pre {
@media (max-width: 800px) { @media (max-width: 800px) {
div.innerwrapper { div.innerwrapper {
padding: 0 15px 15px 15px;
margin-left: 0; margin-left: 0;
} }
@ -357,7 +356,7 @@ pre {
div.menu { div.menu {
height: auto; height: auto;
border-right: none; border-right: none;
width: 100%; --sidebar-width: 100%;
float: left; float: left;
} }