fix(mobile): improve NavigationHeader layout and styling
- Update rootTitleBarStyle with row layout and center alignment - Adjust flex direction and alignment in header grid view - Enhance header component's visual consistency Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -168,12 +168,14 @@ export const NavigationHeader = ({
|
||||
defaultHeight,
|
||||
hideableBottomHeight,
|
||||
)
|
||||
const rootHeightStyle = useAnimatedStyle(() => {
|
||||
const rootTitleBarStyle = useAnimatedStyle(() => {
|
||||
const styles = {
|
||||
paddingTop: insets.top,
|
||||
|
||||
minHeight: defaultHeight,
|
||||
position: "relative",
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
overflow: "hidden",
|
||||
} satisfies DefaultStyle
|
||||
if (hideableBottom) {
|
||||
@@ -234,7 +236,7 @@ export const NavigationHeader = ({
|
||||
ref={animatedRef}
|
||||
pointerEvents={"box-none"}
|
||||
{...rest}
|
||||
style={[rootHeightStyle, style]}
|
||||
style={[rootTitleBarStyle, style]}
|
||||
onLayout={useCallback(
|
||||
(e: LayoutChangeEvent) => {
|
||||
setHeaderHeight?.(e.nativeEvent.layout.height)
|
||||
@@ -249,7 +251,7 @@ export const NavigationHeader = ({
|
||||
{/* Grid */}
|
||||
|
||||
<View
|
||||
className="relative flex-row items-stretch"
|
||||
className="relative flex-row items-center"
|
||||
style={{
|
||||
marginLeft: insets.left,
|
||||
marginRight: insets.right,
|
||||
|
||||
Reference in New Issue
Block a user