Skip to content

Commit 6c3f415

Browse files
committed
adjust dropdown spacing for mobile layout
1 parent ac23b4f commit 6c3f415

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

apps/dash-salesforce-crm/assets/s1.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,14 @@ th {
178178
position: relative;
179179
border: 1px solid #f1f1f1;
180180
}
181+
.dd-styles {
182+
border-radius: 5px;
183+
background-color: white;
184+
margin: 0.5rem;
185+
padding-top: 7px;
186+
position: relative;
187+
border: 1px solid #f1f1f1;
188+
}
181189
.tabs > a {
182190
text-decoration: none;
183191
color: #333333;
@@ -226,6 +234,14 @@ table {
226234
background: transparent; /* Optional: just make scrollbar invisible */
227235
}
228236

237+
.has-value.Select--single > .Select-control .Select-value .Select-value-label,
238+
.has-value.is-pseudo-focused.Select--single
239+
> .Select-control
240+
.Select-value
241+
.Select-value-label {
242+
color: #848484;
243+
}
244+
229245
#cases_reasons {
230246
height: 100%;
231247
}
@@ -239,7 +255,7 @@ table {
239255

240256
@media (max-width: 450px) {
241257
.dropdown-styles {
242-
width: 25% !important;
258+
width: 28% !important;
243259
display: inline-block !important;
244260
}
245261
.app-title {
@@ -299,6 +315,10 @@ table {
299315
width: 30%;
300316
display: inline-block;
301317
}
318+
.dd-styles {
319+
width: 44%;
320+
display: inline-block;
321+
}
302322
.indicator_value {
303323
font-size: 1.5rem;
304324
}

apps/dash-salesforce-crm/panels/leads.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def modal():
319319
id="lead_grid",
320320
children=[
321321
html.Div(
322-
className="two columns dropdown-styles",
322+
className="two columns dd-styles",
323323
children=dcc.Dropdown(
324324
id="converted_leads_dropdown",
325325
options=[
@@ -332,7 +332,7 @@ def modal():
332332
),
333333
),
334334
html.Div(
335-
className="two columns dropdown-styles",
335+
className="two columns dd-styles",
336336
children=dcc.Dropdown(
337337
id="lead_source_dropdown",
338338
options=[

0 commit comments

Comments
 (0)