From 4210e859b26a866ec6dbb32892cf3bee997d2134 Mon Sep 17 00:00:00 2001 From: Sergey Karpov Date: Sun, 3 Dec 2023 19:54:14 +0100 Subject: [PATCH] Slightly unify the look of rightmost panels --- apps/mulens/cards.py | 9 +++++---- apps/plotting.py | 2 +- apps/summary.py | 6 +++--- apps/supernovae/cards.py | 18 +++++++----------- apps/varstars/cards.py | 9 ++++++--- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/apps/mulens/cards.py b/apps/mulens/cards.py index f39db547..0c1a0a38 100644 --- a/apps/mulens/cards.py +++ b/apps/mulens/cards.py @@ -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 @@ -115,4 +116,4 @@ def card_explanation_mulens(): ), ], value='info' ) - return card \ No newline at end of file + return card diff --git a/apps/plotting.py b/apps/plotting.py index a59e986c..3da489ee 100644 --- a/apps/plotting.py +++ b/apps/plotting.py @@ -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 diff --git a/apps/summary.py b/apps/summary.py index da070401..1269389d 100644 --- a/apps/summary.py +++ b/apps/summary.py @@ -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( @@ -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( @@ -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([ diff --git a/apps/supernovae/cards.py b/apps/supernovae/cards.py index b760e0e3..4e67c216 100644 --- a/apps/supernovae/cards.py +++ b/apps/supernovae/cards.py @@ -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, @@ -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 ), ], ) diff --git a/apps/varstars/cards.py b/apps/varstars/cards.py index f37a582c..1f0c366e 100644 --- a/apps/varstars/cards.py +++ b/apps/varstars/cards.py @@ -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=&litude_min=&litude_max=&period_min=&period_max=&lksl_min=&lksl_max=&class_prob_min=&class_prob_max=¶llax_over_err_min=¶llax_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), @@ -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 \ No newline at end of file + return card1