Skip to content

Commit b4d75dd

Browse files
committed
wip: properties panel add close upper right
1 parent cb2455b commit b4d75dd

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

packages/webui/src/client/styles/propertiesPanel.scss

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
.properties-panel {
88
position: fixed;
9-
background: #fff;
9+
background: #7b7b7b;
1010
color: #000;
11-
top: 45px;
11+
top: 50px;
1212
right: 0;
13-
bottom: 20px;
13+
bottom: 10px;
1414
width: calc(#{$notification-center-width} + 4.6875rem);
1515
z-index: 292;
1616

@@ -26,11 +26,11 @@
2626
}
2727

2828
.propertiespanel-pop-up {
29-
background: #303030;
29+
background: #252525;
3030
border-radius: 1px;
3131
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
3232
margin: 1px;
33-
height: 100%;
33+
height: 98.2%;
3434
width: 87%;
3535

3636
&:first-child {
@@ -41,8 +41,15 @@
4141
margin-bottom: 0.9375rem;
4242
}
4343

44+
> .propertiespanel-pop-up_close {
45+
position: absolute;
46+
top: 25px;
47+
right: 70px;
48+
color: white;
49+
}
50+
4451
> .propertiespanel-pop-up__header {
45-
background: #484848;
52+
background: #3d3d3d;
4653
color: #ddd;
4754

4855
min-width: 2.5rem;

packages/webui/src/client/ui/UserEditOperations/PropertiesPanel.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { DBPart } from '@sofie-automation/corelib/dist/dataModel/Part'
2828
import { RundownId } from '@sofie-automation/corelib/dist/dataModel/Ids'
2929
import { SchemaFormInPlace } from '../../lib/forms/SchemaFormInPlace'
3030
import { RundownUtils } from '../../lib/rundown'
31+
import * as CoreIcon from '@nrk/core-icons/jsx'
3132

3233
interface PendingChange {
3334
operationId: string
@@ -39,7 +40,7 @@ interface PendingChange {
3940
}
4041

4142
export function PropertiesPanel(): JSX.Element {
42-
const { listSelectedElements } = useSelection()
43+
const { listSelectedElements, clearSelections } = useSelection()
4344
const selectedElement = listSelectedElements()?.[0]
4445
const { t } = useTranslation()
4546

@@ -117,6 +118,10 @@ export function PropertiesPanel(): JSX.Element {
117118
return (
118119
<div className="properties-panel">
119120
<div className="propertiespanel-pop-up">
121+
<div className="propertiespanel-pop-up_close" onClick={clearSelections}>
122+
<CoreIcon.NrkClose />
123+
</div>
124+
120125
{rundownId && selectedElement?.type === 'part' && (
121126
<>
122127
<div className="propertiespanel-pop-up__header">

0 commit comments

Comments
 (0)