-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devel' into CB-4257-ability-to-assume-aws-session-using…
…-any-open-id-provider
- Loading branch information
Showing
8 changed files
with
144 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.root { | ||
display: inline-flex; | ||
align-items: center; | ||
font-size: 12px; | ||
} | ||
|
||
.combobox { | ||
width: 120px; | ||
flex: 0 0 auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,26 @@ | ||
import styled, { css } from 'reshadow'; | ||
|
||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
import { Combobox } from '@cloudbeaver/core-blocks'; | ||
|
||
import classes from './CrsInput.m.css'; | ||
import type { CrsKey } from './LeafletMap'; | ||
|
||
const styles = css` | ||
root { | ||
display: inline-flex; | ||
align-items: center; | ||
font-size: 12px; | ||
} | ||
label { | ||
margin-right: 4px; | ||
flex-grow: 0; | ||
flex-shrink: 1; | ||
} | ||
Combobox { | ||
width: 120px; | ||
flex: 0 0 auto; | ||
} | ||
`; | ||
|
||
interface Props { | ||
value: CrsKey; | ||
onChange: (value: CrsKey) => void; | ||
} | ||
|
||
const items: CrsKey[] = ['Simple', 'EPSG3395', 'EPSG3857', 'EPSG4326', 'EPSG900913']; | ||
const items: CrsKey[] = ['Simple', 'EPSG:3395', 'EPSG:3857', 'EPSG:4326', 'EPSG:900913']; | ||
|
||
export function CrsInput(props: Props) { | ||
return styled(styles)( | ||
<root> | ||
<label>CRS:</label> | ||
<Combobox items={items} value={props.value} onSelect={props.onChange} /> | ||
</root>, | ||
return ( | ||
<div className={classes.root}> | ||
<Combobox className={classes.combobox} items={items} value={props.value} onSelect={props.onChange} /> | ||
</div> | ||
); | ||
} |
16 changes: 16 additions & 0 deletions
16
webapp/packages/plugin-gis-viewer/src/GISValuePresentation.m.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.root { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
} | ||
|
||
.map { | ||
flex: 1 1 auto; | ||
border-radius: var(--theme-group-element-radius); | ||
overflow: hidden; | ||
} | ||
|
||
.toolbar { | ||
margin-top: 8px; | ||
flex: 0 0 auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.