I also use dbc.NavbarSimple, not sure if that’s relevant.
import pandas as pd
import dash_table
import dash_html_components as html
df = pd.DataFrame()
layout = html.Div([
dash_table.DataTable(
columns=[
{
'id': 'name',
'name': 'Name',
},
{
'id': 'score',
'name': 'Score',
},
],
data=df.to_dict('records'),
style_cell={'textAlign': 'left'},
),
])
Capture from left of the screen, you can see half of the “Name” column is cut