1、修复资源库列表展示问题
This commit is contained in:
1 parent
8eea806ca6
commit
6ee79f14cb
2 files changed
+4
-21
No files matched your search
@@ -79,7 +79,7 @@ fun MainApp() {
|
||||
var recordsSegment by remember { mutableIntStateOf(1) }
|
||||
var searchQuery by remember { mutableStateOf("") }
|
||||
var showLibraryAddDialog by remember { mutableStateOf(false) }
|
||||
var libraryIsGrid by remember { mutableStateOf(false) }
|
||||
var libraryIsGrid by remember { mutableStateOf(true) }
|
||||
var showIconLibraryManager by remember { mutableStateOf(false) }
|
||||
var showCacheDetail by remember { mutableStateOf(false) }
|
||||
var homeDetailVisible by remember { mutableStateOf(false) }
|
||||
|
||||
@@ -188,7 +188,6 @@ private fun ServerCard(server: EmbyServer, tint: Color, onClick: () -> Unit, onC
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Icon Library Section */
|
||||
/* ------------------------------------------------------------------ */
|
||||
@@ -243,7 +242,7 @@ private fun ServerGridCard(server: EmbyServer, tint: Color, onClick: () -> Unit,
|
||||
GlassPopup(expanded = showPopup, onDismissRequest = { showPopup = false }) { GlassPopupItem(text = "\u7F16\u8F91", icon = Icons.Outlined.Edit, onClick = { showPopup = false; onEdit() }); GlassPopupItem(text = "\u66F4\u6362\u56FE\u6807", icon = Icons.Outlined.Image, onClick = { showPopup = false; onChangeIcon() }); GlassPopupItem(text = "\u5220\u9664", icon = Icons.Outlined.Delete, tint = offlineRed, onClick = { showPopup = false; onDelete() }) }
|
||||
}
|
||||
}
|
||||
if (server.note.isNotBlank()) {
|
||||
Box(Modifier.height(22.dp)) {
|
||||
Text(
|
||||
text = server.note,
|
||||
color = GlassTokens.subtext,
|
||||
@@ -257,7 +256,6 @@ private fun ServerGridCard(server: EmbyServer, tint: Color, onClick: () -> Unit,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Icon Library Section */
|
||||
/* ------------------------------------------------------------------ */
|
||||
@@ -338,8 +336,8 @@ fun LibraryScreen(
|
||||
} else {
|
||||
LazyVerticalGrid(
|
||||
columns = if (isGrid) GridCells.Fixed(2) else GridCells.Fixed(1),
|
||||
modifier = Modifier.fillMaxSize().padding(horizontal = if (isGrid) 16.dp else 0.dp),
|
||||
contentPadding = PaddingValues(top = 16.dp, bottom = bottomBarContentPadding(86.dp).calculateBottomPadding()),
|
||||
modifier = Modifier.fillMaxSize().statusBarsPadding().padding(horizontal = if (isGrid) 16.dp else 0.dp, vertical = 0.dp).padding(top = 78.dp),
|
||||
contentPadding = PaddingValues(bottom = bottomBarContentPadding(86.dp).calculateBottomPadding()),
|
||||
verticalArrangement = Arrangement.spacedBy(if (isGrid) 12.dp else 10.dp),
|
||||
horizontalArrangement = Arrangement.spacedBy(if (isGrid) 12.dp else 0.dp),
|
||||
) {
|
||||
@@ -379,7 +377,6 @@ fun LibraryScreen(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Icon Library Section */
|
||||
/* ------------------------------------------------------------------ */
|
||||
@@ -397,7 +394,6 @@ fun IconLibraryManagerScreen(
|
||||
var showAddDialog by remember { mutableStateOf(false) }
|
||||
var editingLibraryId by remember { mutableStateOf<String?>(null) }
|
||||
|
||||
|
||||
val editingLibrary = editingLibraryId?.let { id -> libraries.find { it.id == id } }
|
||||
|
||||
Column(modifier.fillMaxSize()
|
||||
@@ -1192,7 +1188,6 @@ private fun AddIconLibraryDialog(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Icon Library Section */
|
||||
/* ------------------------------------------------------------------ */
|
||||
@@ -1410,7 +1405,6 @@ private fun IconPickerDialog(server: EmbyServer, onDismiss: () -> Unit, onPick:
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Icon Library Section */
|
||||
/* ------------------------------------------------------------------ */
|
||||
@@ -1556,14 +1550,3 @@ private fun AddServerDialog(initial: EmbyServer? = null, onDismiss: () -> Unit,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user