Use Devices.PHONE directly in the landscape preview
This commit is contained in:
parent
69fb344517
commit
7cdad11753
1 changed files with 2 additions and 1 deletions
|
|
@ -55,6 +55,7 @@ import androidx.compose.ui.res.stringResource
|
|||
import androidx.compose.ui.semantics.heading
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.tooling.preview.Devices
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.tooling.preview.PreviewParameter
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
|
@ -641,7 +642,7 @@ internal fun MediaViewerViewPreview(@PreviewParameter(MediaViewerStateProvider::
|
|||
)
|
||||
}
|
||||
|
||||
@Preview(device = "spec:width=411dp,height=891dp, orientation=landscape")
|
||||
@Preview(device = "${Devices.PHONE}, orientation=landscape")
|
||||
@Composable
|
||||
internal fun MediaViewerViewLandscapePreview(@PreviewParameter(MediaViewerStateProvider::class) state: MediaViewerState) = ElementPreviewDark {
|
||||
MediaViewerView(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue