Skip to content

Commit

Permalink
Slightly unify the look of rightmost panels
Browse files Browse the repository at this point in the history
  • Loading branch information
karpov-sv committed Dec 3, 2023
1 parent 142aa5c commit 4210e85
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
9 changes: 5 additions & 4 deletions apps/mulens/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ def card_mulens_button(object_data):
)
),
],
radius='xl', p='md', shadow='xl', withBorder=True
radius='sm', p='xs', shadow='sm', withBorder=True
),
],
),
],
value='neighbourhood'
value='neighbourhood',
),
]
],
styles={'content':{'padding':'5px'}}
)

return card1
Expand All @@ -115,4 +116,4 @@ def card_explanation_mulens():
),
], value='info'
)
return card
return card
2 changes: 1 addition & 1 deletion apps/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2048,7 +2048,7 @@ def plot_mulens(n_clicks, object_data):
mulens_params = dmc.Paper(
[
dcc.Markdown(mulens_params),
], radius='xl', p='md', shadow='xl', withBorder=True
], radius='sm', p='xs', shadow='sm', withBorder=True
)

return graph, mulens_params, no_update
Expand Down
6 changes: 3 additions & 3 deletions apps/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def tab2_content():
def tab3_content():
""" Variable stars tab
"""
nterms_base = dbc.Row(
nterms_base = dmc.Container(
[
dbc.Label("Number of base terms"),
dbc.Input(
Expand Down Expand Up @@ -133,7 +133,7 @@ def tab3_content():
id='manual_period',
debounce=True
)
], className='mb-3', style={'width': '100%', 'display': 'inline-block'}
], className='mb-3'#, style={'width': '100%', 'display': 'inline-block'}
)

submit_varstar_button = dmc.Button(
Expand All @@ -146,7 +146,7 @@ def tab3_content():
card2 = dmc.Paper(
[
nterms_base,
], radius='xl', p='md', shadow='xl', withBorder=True
], radius='sm', p='xs', shadow='sm', withBorder=True
)

tab3_content_ = html.Div([
Expand Down
18 changes: 7 additions & 11 deletions apps/supernovae/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,13 @@ def card_sn_properties(clickData, object_data):

card = html.Div(
[
dmc.Paper(
[
dcc.Markdown(
"""
Click on a point in the lightcurve to update parameters below.
"""
)
],
radius='xl', p='md', shadow='xl', withBorder=True
dcc.Markdown(
"""
Click on a point in the lightcurve to update parameters below.
""",
className="m-2"
),
html.Br(),
# html.Br(),
dmc.Paper(
[
badge,
Expand Down Expand Up @@ -260,7 +256,7 @@ def card_sn_properties(clickData, object_data):
),
),
],
radius='xl', p='md', shadow='xl', withBorder=True
radius='sm', p='xs', shadow='sm', withBorder=True
),
],
)
Expand Down
9 changes: 6 additions & 3 deletions apps/varstars/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def card_variable_button(object_data):
color='dark',
outline=True,
id='asas-sn',
title='ASAS-SN',
target="_blank",
href='https://asas-sn.osu.edu/variables?ra={}&dec={}&radius=0.5&vmag_min=&vmag_max=&amplitude_min=&amplitude_max=&period_min=&period_max=&lksl_min=&lksl_max=&class_prob_min=&class_prob_max=&parallax_over_err_min=&parallax_over_err_max=&name=&references[]=I&references[]=II&references[]=III&references[]=IV&references[]=V&references[]=VI&sort_by=raj2000&sort_order=asc&show_non_periodic=true&show_without_class=true&asassn_discov_only=false&'.format(ra0, dec0)
), width=4),
Expand All @@ -133,20 +134,22 @@ def card_variable_button(object_data):
color='dark',
outline=True,
id='SNAD-var-star',
title='SNAD',
target="_blank",
href='https://ztf.snad.space/search/{} {}/{}'.format(ra0, dec0, 5)
), width=4),
], justify='around'
),
],
radius='xl', p='md', shadow='xl', withBorder=True
radius='sm', p='xs', shadow='sm', withBorder=True
),
],
),
],
value="external"
),
]
],
styles={'content':{'padding':'5px'}}
)

return card1
return card1

0 comments on commit 4210e85

Please sign in to comment.