mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Temporarily replace library category tabs divider with our own
Fixes #7789
This commit is contained in:
		| @@ -14,6 +14,7 @@ import com.google.accompanist.pager.PagerState | ||||
| import eu.kanade.domain.category.model.Category | ||||
| import eu.kanade.presentation.category.visualName | ||||
| import eu.kanade.presentation.components.AppStateBanners | ||||
| import eu.kanade.presentation.components.Divider | ||||
| import eu.kanade.presentation.components.TabIndicator | ||||
| import eu.kanade.presentation.components.TabText | ||||
| import kotlinx.coroutines.launch | ||||
| @@ -34,6 +35,9 @@ fun LibraryTabs( | ||||
|             selectedTabIndex = state.currentPage, | ||||
|             edgePadding = 0.dp, | ||||
|             indicator = { TabIndicator(it[state.currentPage]) }, | ||||
|             // TODO: use default when width is fixed upstream | ||||
|             // https://issuetracker.google.com/issues/242879624 | ||||
|             divider = {}, | ||||
|         ) { | ||||
|             categories.forEachIndexed { index, category -> | ||||
|                 val count by if (showMangaCount) { | ||||
| @@ -51,6 +55,8 @@ fun LibraryTabs( | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         Divider() | ||||
|  | ||||
|         AppStateBanners(isDownloadOnly, isIncognitoMode) | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user