Skip to content

Commit

Permalink
Fix tab title size. Fixes #1403
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Feb 25, 2024
1 parent 269cf84 commit 3f575e8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
Expand Up @@ -19,6 +19,7 @@ import androidx.compose.material.pullrefresh.pullRefresh
import androidx.compose.material.pullrefresh.rememberPullRefreshState
import androidx.compose.material3.DrawerState
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.material3.SnackbarHostState
import androidx.compose.material3.Tab
Expand Down Expand Up @@ -214,7 +215,12 @@ fun InboxTabs(
pagerState.animateScrollToPage(index)
}
},
text = { Text(text = stringResource(id = tab.textId)) },
text = {
Text(
text = stringResource(id = tab.textId),
style = MaterialTheme.typography.bodyMedium,
)
},
)
}
},
Expand Down
Expand Up @@ -382,7 +382,12 @@ fun UserTabs(
pagerState.animateScrollToPage(index)
}
},
text = { Text(text = title) },
text = {
Text(
text = title,
style = MaterialTheme.typography.bodyMedium,
)
},
)
}
}
Expand Down
Expand Up @@ -19,6 +19,7 @@ import androidx.compose.material.pullrefresh.pullRefresh
import androidx.compose.material.pullrefresh.rememberPullRefreshState
import androidx.compose.material3.DrawerState
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.material3.SnackbarHostState
import androidx.compose.material3.Tab
Expand Down Expand Up @@ -180,7 +181,12 @@ fun ReportsTabs(
pagerState.animateScrollToPage(index)
}
},
text = { Text(text = stringResource(id = tab.textId)) },
text = {
Text(
text = stringResource(id = tab.textId),
style = MaterialTheme.typography.bodyMedium,
)
},
)
}
},
Expand Down

0 comments on commit 3f575e8

Please sign in to comment.