File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed
ballerina-side-panel/src/components/ModeSwitcher
ballerina-visualizer/src/views/BI/HelperPaneNew/Views Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,19 @@ export const Label = styled.span<LabelProps>`
3434 top: 50%;
3535 transform: translateY(-50%);
3636 cursor: pointer;
37+ display: flex;
38+ align-items: center;
39+ justify-content: center;
40+ white-space: nowrap;
3741
3842 &:first-of-type {
3943 left: 0;
40- width: 30 %;
44+ width: 40 %;
4145 }
4246
4347 &:last-of-type {
44- left: 30 %;
45- width: 70 %;
48+ left: 40 %;
49+ width: 60 %;
4650 }
4751` ;
4852
@@ -67,8 +71,8 @@ export const Slider = styled.div<{ checked: boolean }>`
6771 content: "";
6872 position: absolute;
6973 height: calc(100% - 4px);
70- width: ${ props => props . checked ? 'calc(70 % - 6px )' : 'calc(35 % - 2px)' } ;
71- left: ${ props => props . checked ? 'calc(30 % + 4px )' : '2px' } ;
74+ width: ${ props => props . checked ? 'calc(60 % - 4px )' : 'calc(40 % - 2px)' } ;
75+ left: ${ props => props . checked ? 'calc(40 % + 2px )' : '2px' } ;
7276 border-radius: 1px;
7377 background: ${ ThemeColors . SURFACE_DIM } ;
7478 transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
@@ -90,7 +94,7 @@ export const SwitchWrapper = styled.div`
9094 position: relative;
9195 display: inline-flex;
9296 align-items: center;
93- width: 110px ;
97+ width: 112px ;
9498 height: 24px;
9599 margin-top: 2px;
96100` ;
Original file line number Diff line number Diff line change @@ -386,10 +386,6 @@ export function ConfigureRecordPage(props: ConfigureRecordPageProps) {
386386 onClose ( ) ;
387387 }
388388
389- const handleCancel = ( ) => {
390- onClose ( ) ;
391- }
392-
393389 // Debounced function to fetch diagnostics
394390 const fetchDiagnostics = useRef (
395391 debounce ( async ( value : string ) => {
@@ -660,9 +656,6 @@ export function ConfigureRecordPage(props: ConfigureRecordPageProps) {
660656 </ FormContext . Provider >
661657 </ ExpressionEditorContainer >
662658 < ButtonContainer >
663- < Button appearance = "secondary" onClick = { handleCancel } >
664- Cancel
665- </ Button >
666659 < Button appearance = "primary" onClick = { handleSave } >
667660 Save
668661 </ Button >
You can’t perform that action at this time.
0 commit comments