mirror of
https://github.com/openflocon/Flocon.git
synced 2026-05-02 02:10:12 +00:00
fix: [NETWORK] panel size (#225)
Co-authored-by: Florent Champigny <florent@bere.al>
This commit is contained in:
parent
4ee81fe066
commit
4c0955a068
1 changed files with 4 additions and 4 deletions
|
|
@ -9,6 +9,7 @@ import androidx.compose.animation.core.VectorConverter
|
|||
import androidx.compose.animation.core.animateTo
|
||||
import androidx.compose.animation.core.tween
|
||||
import androidx.compose.animation.togetherWith
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.BoxScope
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
|
|
@ -27,6 +28,7 @@ import androidx.compose.ui.Alignment
|
|||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.draw.dropShadow
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.graphicsLayer
|
||||
import androidx.compose.ui.graphics.shadow.Shadow
|
||||
import androidx.compose.ui.unit.Dp
|
||||
|
|
@ -73,7 +75,7 @@ fun <T : Any?> FloconPanel(
|
|||
)
|
||||
}
|
||||
|
||||
private val PanelWidth = 400.dp
|
||||
private val PanelWidth = 500.dp
|
||||
|
||||
@Composable
|
||||
fun FloconPanel(
|
||||
|
|
@ -116,9 +118,7 @@ fun FloconPanel(
|
|||
.graphicsLayer {
|
||||
this.translationX = translationX.value.toPx()
|
||||
}
|
||||
.padding(12.dp)
|
||||
.dropShadow(FloconTheme.shapes.large, Shadow(8.dp, color = FloconTheme.colorPalette.accent))
|
||||
.clip(FloconTheme.shapes.large),
|
||||
.border(width = 1.dp, color = FloconTheme.colorPalette.surface),
|
||||
content = content
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue