mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
Canvas: Implement minimum element size + center constraint UX (#49294)
This commit is contained in:
parent
689f51599a
commit
646dcfccf9
@ -83,6 +83,9 @@ export class ElementState implements LayerElement {
|
||||
|
||||
const style: React.CSSProperties = {
|
||||
position: 'absolute',
|
||||
// Minimum element size is 10x10
|
||||
minWidth: '10px',
|
||||
minHeight: '10px',
|
||||
};
|
||||
|
||||
const translate = ['0px', '0px'];
|
||||
|
@ -50,6 +50,7 @@ export const ConstraintSelectionBox = ({
|
||||
height="75.000000pt"
|
||||
viewBox="0 0 228.000000 228.000000"
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
style={{ marginBottom: '4.8px' }}
|
||||
>
|
||||
<g transform="translate(0.000000,228.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none">
|
||||
<path
|
||||
|
Loading…
Reference in New Issue
Block a user