File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export default function FilterDialog({
5656 const [ searchQuery , setSearchQuery ] = useState ( "" ) ;
5757 const [ currentPage , setCurrentPage ] = useState ( 1 ) ;
5858 const [ open , setOpen ] = useState ( false ) ;
59- const [ isOpen , setIsOpen ] = useState ( true ) ;
59+ const [ isOpen , setIsOpen ] = useState ( false ) ;
6060 const itemsPerPage = 10 ;
6161
6262 const fetchData = async ( ) => {
Original file line number Diff line number Diff line change @@ -441,8 +441,8 @@ export default function Main() {
441441 { ( files . length <= 1 || hasRelationships ) && (
442442 < >
443443 < PivotFields />
444- < div className = "flex flex-col justify-between gap-1" >
445- < div className = "flex flex-row gap-1" >
444+ < div className = "flex flex-col gap-1" >
445+ < div className = "flex flex-row items-center justify-center lg:justify-start flex-wrap gap-1" >
446446 < Button
447447 className = "flex flex-row gap-1 py-1 px-2 rounded-md w-fit"
448448 disabled = { isQueryRunning }
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import PivotFilters from "./pivotfields/PivotFilters";
88
99export default function PivotFields ( ) {
1010 return (
11- < div className = "flex md :flex-row gap-1 w-full h-fit" >
12- < div className = "flex w-[300px] h-full" >
11+ < div className = "flex flex-col lg :flex-row items-center justify-center gap-1 w-full h-fit" >
12+ < div className = "flex lg:w-1/5 w-full min- w-[300px] h-full" >
1313 < Aggregation />
1414 </ div >
1515 < div className = "flex flex-col gap-1 w-full" >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default function Aggregation() {
99 const { aggregation, clearAggregation } = usePivotStore ( ) ;
1010 const { files } = useFileStore ( ) ;
1111 return (
12- < div className = "flex flex-col items-center gap-3 border rounded-lg px-4 py-1 h-full w-full" >
12+ < div className = "flex flex-col items-center gap-3 border rounded-lg px-4 py-1 h-fit w-full" >
1313 < div className = "flex flex-row items-center gap-1" >
1414 < SquareSigma size = { 20 } />
1515 < p > Aggregation</ p >
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ export default function PivotColumns() {
2929 < Columns3 size = { 20 } />
3030 < p > Columns</ p >
3131 </ div >
32- < div className = "flex flex-row flex-wrap items-center gap-2" >
32+ < div className = "flex flex-row flex-wrap items-center gap-2 justify-center " >
3333 { columns . map ( ( column , index ) => (
34- < div key = { index } className = "flex flex-col items-start gap-2" >
34+ < div key = { index } className = "flex flex-col items-center gap-2" >
3535 < Badge className = "flex flex-row items-center gap-2" >
3636 < div className = "relative" >
3737 < Database size = { 16 } />
@@ -68,7 +68,7 @@ export default function PivotColumns() {
6868 < Trash2
6969 onClick = { clearColumns }
7070 size = { 24 }
71- className = "cursor-pointer hover:text-blue-500"
71+ className = "cursor-pointer hover:text-blue-500 min-w-[24px] "
7272 />
7373 </ div >
7474 ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default function PivotFilters() {
1515 < Filter size = { 20 } />
1616 < p > Filters</ p >
1717 </ div >
18- < div className = "flex flex-row flex-wrap items-center gap-2" >
18+ < div className = "flex flex-row flex-wrap items-center gap-2 justify-center " >
1919 { filters . map ( ( filter ) => (
2020 < div
2121 key = { `${ filter . table } -${ filter . field } ` }
@@ -42,7 +42,7 @@ export default function PivotFilters() {
4242 < Trash2
4343 onClick = { clearFilters }
4444 size = { 24 }
45- className = "cursor-pointer hover:text-blue-500"
45+ className = "cursor-pointer hover:text-blue-500 min-w-[24px] "
4646 />
4747 </ div >
4848 ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default function PivotRows() {
2323 < Rows3 size = { 20 } />
2424 < p > Rows</ p >
2525 </ div >
26- < div className = "flex flex-row flex-wrap items-center gap-2" >
26+ < div className = "flex flex-row flex-wrap items-center gap-2 justify-center " >
2727 { rows . map ( ( row , index ) => (
2828 < div key = { index } className = "flex flex-col items-center gap-2" >
2929 < Badge className = "flex flex-row items-center gap-2" >
@@ -62,7 +62,7 @@ export default function PivotRows() {
6262 < Trash2
6363 onClick = { clearRows }
6464 size = { 24 }
65- className = "cursor-pointer hover:text-blue-500"
65+ className = "cursor-pointer hover:text-blue-500 min-w-[24px] "
6666 />
6767 </ div >
6868 ) ;
You can’t perform that action at this time.
0 commit comments