Added fixes for premium style / modals

This commit is contained in:
simonmicro
2023-05-21 16:37:48 +02:00
parent 86e1fa2ce1
commit c14d60e9bd
3 changed files with 17 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
}
.dark * {
color: rgb(200, 242, 242);
color: rgb(220, 232, 232);
}
.navbar .navbar-brand {

View File

@@ -51,6 +51,8 @@ if(isset($_GET['path'])) {
$stylesheet = '';
if(str_contains($input, 'premium')) {
$license = 'premium';
$stylesheet = file_get_contents('premium.css');
// No need to install the user license "id" into CSS class, as that file only contains custom patches
} else if(str_contains($input, 'enterprise')) {
$license = 'enterprise';
$stylesheet = file_get_contents('enterprise.css');
@@ -77,7 +79,7 @@ if(isset($_GET['path'])) {
if($state == 'Active') {
$result = array(
'active' => $license == 'enterprise_plus',
'active' => true, // if the sub is not active, the css won't use the LICENSE-subscription_id pattern
'status' => $state,
'plan' => $license,
'url_key' => $user,
@@ -152,7 +154,7 @@ if(isset($_GET['path'])) {
),
'enterprise_plus' => array(
'amount' => $licenseCosts
),
)
)
);
}

12
www/premium.css Normal file
View File

@@ -0,0 +1,12 @@
/* Fixes for the premium subscription-modal, which seems to be empty / broken in recent versions */
.enterprise-modal .enterprise-info {
display: inherit;
}
.enterprise-modal .modal .enterprise-info .premium-plan {
display: inherit;
}
.enterprise-modal .enterprise-buttons {
display: inherit;
}