repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 43f32367d41d28f4664c049f1649486293ca414e:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 43f32367d41d28f4664c049f1649486293ca414e
Author: James Baicoianu 
Date:   Wed May 9 12:36:22 2018 -0700

    Improved 3D object inventory

diff --git a/media/assets/webui/apps/inventory/inventory.css b/media/assets/webui/apps/inventory/inventory.css
index 72a4b60fdb67386171202b7d2d61ad2fa9e04ade..
index ..b09ff2fbfe2b3e4a8a9393731056e793b8ae143c 100644
--- a/media/assets/webui/apps/inventory/inventory.css
+++ b/media/assets/webui/apps/inventory/inventory.css
@@ -1,8 +1,9 @@
 ui-grid.models {
-  width: 30em;
+  height: 30em;
+  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
+  grid-template-rows: repeat(auto-fill, minmax(80px, 1fr));
 }
 ui-grid.models>ui-item {
-  width: calc(20% - 2px);
   height: auto;
   padding: 0;
   position: relative;
@@ -10,6 +11,7 @@ ui-grid.models>ui-item {
   border-radius: 10px;
   box-shadow: 0 0 5px rgba(0,0,0,.5);
   margin: 0;
+  display: flex;
 }
 ui-grid.models>ui-item h2 {
   font-size: .8em;
@@ -42,9 +44,9 @@ ui-grid.models>ui-item img {
   display: block;
 }
 ui-grid.models>ui-item a {
-  display: block;
   margin: 0;
   padding: 0;
+  flex: 1 1;
 }
 ui-grid.models>ui-item p {
   display: none;
diff --git a/media/assets/webui/apps/inventory/inventory.html b/media/assets/webui/apps/inventory/inventory.html
index 1e4d96edd43c810980e0ebb2a4f36627b54ed779..
index ..71f4d8891a04e34f583fdebfc3e96061dade90e8 100644
--- a/media/assets/webui/apps/inventory/inventory.html
+++ b/media/assets/webui/apps/inventory/inventory.html
@@ -12,18 +12,40 @@
     

     
-       
+       
+        
+          cube
+          sphere
+          cone
+          cylinder
+          pyramid
+          torus
+          capsule
+          pipe
+          plane
+
+          point light
+        
+      
+       
         
-          
+          
           
-          Next Page
+          Load More
         
       

-      
-        
-ding
+      
+        
+          

Vesta integration coming soon!

+ When it's ready, you'll be able to access assets you've stored on your Vesta account, and bring them with you anywhere you go. + Sign up for a vesta account today
+ +

Did you know?

+

You can drag 3d models, images, videos, and sounds into Janus rooms from other websites, or even your local hard drive!

+

Just select the files, drag them over, and drop them into the world. Then use our in-world editing tools to place it where you want it to be.

+
diff --git a/media/assets/webui/apps/inventory/inventory.json b/media/assets/webui/apps/inventory/inventory.json
index 651346bcc3dfea6fba8535ba2ec447904a2f41a1..
index ..99d9519a0a6e588bb3fa5203f89a5d1dac5e4f1b 100644
--- a/media/assets/webui/apps/inventory/inventory.json
+++ b/media/assets/webui/apps/inventory/inventory.json
@@ -4,5 +4,8 @@
     "janus.ui.inventory.item.poly": "./inventory-item-poly.html"
   },
   "scripts":  ["./inventory.js"],
-  "css":      ["./inventory.css"]
+  "css":      ["./inventory.css"],
+  "components": [
+    "janus-ui-inventory"
+  ]
 }

-----END OF PAGE-----