FreePBX / issue-tracker

The unified FreePBX issue tracker.
https://www.freepbx.org
GNU General Public License v3.0
9 stars 1 forks source link

[bug]: Dashboard graph displayed not correctly #199

Closed danardf closed 1 month ago

danardf commented 5 months ago

FreePBX Version

FreePBX 17

Issue Description

The graph in Live Network Usage is not displayed correctly. The grpah is too large. It's overiding the other widgets. 2024-05-30_095538

And the graph Disk Usage needs to be centered BTW.

Operating Environment

Dashboard 17.0.4.2

Relevant log output

No response

derekcrpd commented 5 months ago

I notice this too on 17.0.15.27.

6-8-2024 1-09-43 AM

cordeosdev commented 1 month ago

A quick fix for this annoying little display issue is to simply adjust the CSS for the container block. This should be added to the code base...

netmonout {

max-width: 75%;

}

cordeosdev commented 1 month ago

For anyone interested in just a quick fix before the base code is updated... (this is NOT meant for permanent production)


# Create custom.css 
# at: /var/www/html/admin/assets/css

cat <<EOF > /var/www/html/admin/assets/css/custom.css
#netmonout {
    max-width: 75%;
}
EOF

chown asterisk:asterisk /var/www/html/admin/assets/css/custom.css

#mysql -u root
#use asterisk;
#UPDATE freepbx_settings SET VALUE='assets/css/custom.css' WHERE keyword='BRAND_CSS_CUSTOM';

echo "UPDATE freepbx_settings SET VALUE='assets/css/custom.css' WHERE keyword='BRAND_CSS_CUSTOM'" | mysql -u root asterisk
danardf commented 1 month ago

PR raised. https://github.com/FreePBX/dashboard/pull/14 Thanks @cordeosdev

danardf commented 1 month ago

@kguptasangoma Hey Kapil Once merged. please close this issue too.

C.U later.

danardf commented 1 month ago

image

kguptasangoma commented 1 month ago

dashboard v17.0.4.6