Skip to content

Commit 4b04a21

Browse files
Merge pull request #4301 from OneCommunityGlobal/xinyi_fix_longest_open_issues_chart
Xinyi - fix: longst open issues chart
2 parents e4926fb + 580f04c commit 4b04a21

2 files changed

Lines changed: 304 additions & 56 deletions

File tree

src/components/BMDashboard/Issues/issueChart.module.css

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,210 @@
179179
.errorTextDark {
180180
color: #fca5a5;
181181
}
182+
183+
.chartContainer {
184+
width: 100%;
185+
height: 500px;
186+
}
187+
188+
/* Container for entire chart section */
189+
.issueChartContainer {
190+
width: 50vw; /* full viewport width */
191+
padding: 20px;
192+
box-sizing: border-box; /* include padding in width */
193+
background: #f9f9f9;
194+
border-radius: 8px;
195+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
196+
}
197+
198+
199+
.filterCenterWrapper {
200+
max-width: 650px; /* filters centered and constrained */
201+
margin: 0 auto 20px auto;
202+
}
203+
204+
205+
.issueChartContainerDark {
206+
width: 50vw; /* full viewport width */
207+
padding: 20px;
208+
box-sizing: border-box; /* include padding in width */
209+
background: #121212;
210+
box-shadow: 0 4px 12px rgba(0,0,0,0.9);
211+
color: #ccd1dc;
212+
}
213+
214+
/* Chart title */
215+
.title {
216+
text-align: center;
217+
font-size: 24px;
218+
font-weight: bold;
219+
margin-bottom: 20px;
220+
color: #333;
221+
}
222+
223+
.titleDark {
224+
text-align: center;
225+
font-size: 24px;
226+
font-weight: bold;
227+
margin-bottom: 20px;
228+
color: #fff;
229+
}
230+
231+
/* Filter rows */
232+
.dateRow {
233+
display: grid;
234+
grid-template-columns: auto 1fr auto 1fr;
235+
align-items: center;
236+
gap: 10px;
237+
width: 100%;
238+
margin-bottom: 15px;
239+
}
240+
241+
.projectRow {
242+
width: 100%;
243+
}
244+
245+
/* Labels */
246+
.dateLabelLight {
247+
font-size: 14px;
248+
font-weight: 500;
249+
color: #333;
250+
}
251+
252+
.dateLabelDark {
253+
font-size: 14px;
254+
font-weight: 500;
255+
color: #cfd7e3;
256+
}
257+
258+
/* Date picker */
259+
.dateField {
260+
width: 100%;
261+
}
262+
263+
.dateLight,
264+
.dateDark {
265+
width: 100%;
266+
padding: 8px 10px;
267+
border-radius: 6px;
268+
border: 1px solid #ccc;
269+
font-size: 14px;
270+
}
271+
272+
.dateDark {
273+
background: #22272e;
274+
color: #cfd7e3;
275+
border-color: #3d444d;
276+
}
277+
278+
/* React select */
279+
.selectReact {
280+
width: 100%;
281+
}
282+
283+
:global(.react-datepicker__close-icon::after) {
284+
background: none;
285+
color: #b9b9b9;
286+
font-size: 18px;
287+
}
288+
289+
/* DARK MODE CONTROL */
290+
.controlDark {
291+
background: #22272e !important;
292+
border-color: #3d444d !important;
293+
color: #cfd7e3 !important;
294+
}
295+
296+
/* VALUE TEXT */
297+
.valueDark {
298+
color: #cfd7e3 !important;
299+
}
300+
301+
/* MENU */
302+
.menuDark {
303+
background: #22272e !important;
304+
}
305+
306+
/* OPTIONS — keep only base default color */
307+
.optionDark {
308+
color: #cfd7e3 !important;
309+
}
310+
311+
/* MULTI VALUE */
312+
.multiValueDark {
313+
background: #3a3f45 !important;
314+
color: #cfd7e3 !important;
315+
}
316+
317+
.multiValueLabelDark {
318+
color: #cfd7e3 !important;
319+
}
320+
321+
.multiValueRemoveDark {
322+
color: #cfd7e3 !important;
323+
}
324+
325+
/* ===== LIGHT MODE ===== */
326+
327+
.controlLight {
328+
background: white !important;
329+
border-color: #ccc !important;
330+
color: black !important;
331+
}
332+
333+
.menuLight {
334+
background: white !important;
335+
}
336+
337+
.optionLight {
338+
color: black !important;
339+
}
340+
341+
.multiValueLight {
342+
background: #dceeff !important;
343+
color: black !important;
344+
}
345+
346+
.multiValueLabelLight {
347+
color: black !important;
348+
}
349+
350+
.multiValueRemoveLight {
351+
color: black !important;
352+
}
353+
354+
355+
/* No data text */
356+
.noData {
357+
text-align: center;
358+
color: #888;
359+
font-size: 16px;
360+
padding: 40px 0;
361+
}
362+
363+
/* Loading/Error */
364+
.loading,
365+
.error {
366+
text-align: center;
367+
padding: 20px 0;
368+
font-size: 16px;
369+
}
370+
371+
.rowLabel {
372+
margin: 8px 0 8px;
373+
font-weight: 600;
374+
font-size: 16px;
375+
}
376+
377+
378+
/* Responsive */
379+
@media (max-width: 650px) {
380+
.dateRow {
381+
grid-template-columns: 1fr;
382+
gap: 10px;
383+
}
384+
385+
.dateRow span.dateLabel {
386+
display: none; /* hide labels for small screens */
387+
}
388+
}

0 commit comments

Comments
 (0)