@ossy/storage 3.20.1 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/ResourcesPage.jsx +34 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/storage",
|
|
3
3
|
"description": "Analytics module — workspace analytics for website traffic",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.21.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"module": "./src/index.js",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"ramda": "*",
|
|
32
32
|
"react": "*"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "f3eeb810cfdd6eb8be7951eb767669fa29a1b3d8"
|
|
35
35
|
}
|
package/src/ResourcesPage.jsx
CHANGED
|
@@ -671,15 +671,45 @@ export const ResourcesPage = () => {
|
|
|
671
671
|
gap="xs"
|
|
672
672
|
style={{ height: '100%', minHeight: 0, flex: '1 1 auto' }}
|
|
673
673
|
>
|
|
674
|
-
{/*
|
|
675
|
-
|
|
674
|
+
{/* Grid split so the detail panel stretches to the remaining page height.
|
|
675
|
+
Compact: panel replaces the list under 900px, matching ListPanelLayout. */}
|
|
676
|
+
<style href="@ossy/storage/list-panel-compact" precedence="high">{`
|
|
677
|
+
[data-storage-list-panel][data-layout="row"] {
|
|
678
|
+
display: grid;
|
|
679
|
+
grid-template-columns: minmax(0, 1fr);
|
|
680
|
+
grid-template-rows: minmax(0, 1fr);
|
|
681
|
+
align-items: stretch;
|
|
682
|
+
height: 100%;
|
|
683
|
+
min-height: 0;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
[data-storage-list-panel][data-storage-has-panel="true"][data-layout="row"] {
|
|
687
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
[data-storage-list-panel] > [data-storage-list],
|
|
691
|
+
[data-storage-list-panel] > [data-resource-panel] {
|
|
692
|
+
height: 100%;
|
|
693
|
+
max-height: 100%;
|
|
694
|
+
min-height: 0;
|
|
695
|
+
min-width: 0;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
[data-storage-list-panel] > [data-resource-panel] {
|
|
699
|
+
width: 100%;
|
|
700
|
+
}
|
|
701
|
+
|
|
676
702
|
@media (max-width: 900px) {
|
|
703
|
+
[data-storage-list-panel][data-storage-has-panel="true"][data-layout="row"] {
|
|
704
|
+
grid-template-columns: minmax(0, 1fr);
|
|
705
|
+
}
|
|
706
|
+
|
|
677
707
|
[data-storage-list-panel][data-storage-has-panel="true"] > [data-storage-list] {
|
|
678
708
|
display: none;
|
|
679
709
|
}
|
|
680
710
|
|
|
681
711
|
[data-storage-list-panel][data-storage-has-panel="true"] > [data-resource-panel] {
|
|
682
|
-
width: 100
|
|
712
|
+
width: 100%;
|
|
683
713
|
}
|
|
684
714
|
}
|
|
685
715
|
`}</style>
|
|
@@ -1115,7 +1145,7 @@ export const ResourcesPage = () => {
|
|
|
1115
1145
|
</View>
|
|
1116
1146
|
</View.Item>
|
|
1117
1147
|
|
|
1118
|
-
<ResourcePanel resourceId={selectedResourceId} onClose={clearSelectedResourceId} />
|
|
1148
|
+
<ResourcePanel width="100%" resourceId={selectedResourceId} onClose={clearSelectedResourceId} />
|
|
1119
1149
|
|
|
1120
1150
|
</View>
|
|
1121
1151
|
|