Admin Panel: custom styles

This commit is contained in:
He4eT 2025-04-04 16:14:16 +02:00
commit 05dd4957ba

31
src/admin/app.tsx Normal file
View file

@ -0,0 +1,31 @@
import type { StrapiApp } from '@strapi/strapi/admin';
function applyCustomCSS () {
const customCSS = `
* {
border-radius: 0 !important;
scrollbar-color: #8e8ea966 transparent;
}
ol li a {
padding-inline-end: 2rem;
}
`;
const customStyle = document.createElement('style');
customStyle.innerHTML = customCSS;
document.head.appendChild(customStyle);
}
export default {
config: {
tutorials: false,
notifications: {
releases: false,
},
},
bootstrap(app: StrapiApp) {
console.log(app);
applyCustomCSS();
},
};