about summary refs log tree commit diff
path: root/MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-05-03 19:40:00 +0200
committerRory& <root@rory.gay>2024-05-03 19:40:00 +0200
commit222f475dfd662980d5e0b9f27efa951f91604364 (patch)
tree71777992828134ee89249a7e37339bc4aa89ba86 /MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents
parentCleanup, work on index2, some tooling updates (diff)
downloadMatrixUtils-222f475dfd662980d5e0b9f27efa951f91604364.tar.xz
All kinds of changes
Diffstat (limited to 'MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents')
-rw-r--r--MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor26
-rw-r--r--MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor.css12
2 files changed, 24 insertions, 14 deletions
diff --git a/MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor b/MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor
index 7a3b27b..6483f01 100644
--- a/MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor
+++ b/MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor
@@ -1,15 +1,16 @@
 @using MatrixUtils.Abstractions
 <div class="spaceListItem" style="@(SelectedSpace == Space ? "background-color: #FFFFFF33;" : "")" onclick="@SelectSpace">
-    @if (IsSpaceOpened()) {
-        <span onclick="@ToggleSpace">▼ </span>
-    }
-    else {
-        <span onclick="@ToggleSpace">▶ </span>
-    }
-
-    <MxcImage Circular="true" Height="32" Width="32" Homeserver="Space.Room.Homeserver" MxcUri="@Space.RoomIcon"></MxcImage>
-    <span class="spaceNameEllipsis">@Space.RoomName</span>
+    <div class="spaceListItemContainer">
+        @if (IsSpaceOpened()) {
+            <span onclick="@ToggleSpace">▼ </span>
+        }
+        else {
+            <span onclick="@ToggleSpace">▶ </span>
+        }
 
+        <MxcImage Circular="true" Height="32" Width="32" Homeserver="Space.Room.Homeserver" MxcUri="@Space.RoomIcon"></MxcImage>
+        <span class="spaceNameEllipsis">@Space.RoomName</span>
+    </div>
     @if (IsSpaceOpened()) {
         <span>meow</span>
     }
@@ -19,10 +20,10 @@
 
     [Parameter]
     public RoomInfo Space { get; set; }
-    
+
     [Parameter]
     public RoomInfo SelectedSpace { get; set; }
-    
+
     [Parameter]
     public EventCallback<RoomInfo> SelectedSpaceChanged { get; set; }
 
@@ -52,5 +53,4 @@
         return OpenedSpaces.Contains(Space);
     }
 
-}
-
+}
\ No newline at end of file
diff --git a/MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor.css b/MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor.css
index a88975b..d6e413f 100644
--- a/MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor.css
+++ b/MatrixUtils.Web/Pages/Rooms/Index2Components/MainTabComponents/MainTabSpaceItem.razor.css
@@ -11,7 +11,17 @@
 .spaceListItem {
     display: block;
     width: 100%;
-    height: 50px;
+    height: 3em;
+}
+
+.spaceListItemContainer {
+    display: flex;
+    align-items: center;
+    vertical-align: center;
+    justify-content: space-between;
+    padding: 0 16px;
+    width: 100%;
+    height: 100%;
 }
 
 .spaceListItem > img {