Skip to content

Commit

Permalink
fix: font weight in video feed screen
Browse files Browse the repository at this point in the history
Signed-off-by: clegirar <[email protected]>
  • Loading branch information
clegirar committed Dec 18, 2024
1 parent b43cbe8 commit e1b6790
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 34 deletions.
4 changes: 2 additions & 2 deletions packages/components/mini/SelectPicture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SVG } from "@/components/SVG";
import { CustomPressable } from "@/components/buttons/CustomPressable";
import { IMAGE_MIME_TYPES } from "@/utils/mime";
import { neutral33 } from "@/utils/style/colors";
import { fontSemibold14 } from "@/utils/style/fonts";
import { fontRegular14 } from "@/utils/style/fonts";
import { layout } from "@/utils/style/layout";
import { LocalFileData } from "@/utils/types/files";

Expand Down Expand Up @@ -107,7 +107,7 @@ export const SelectPicture = ({
>
<SVG source={Img} width={16} height={16} />
{squareSelectorOptions.placeholder && (
<BrandText style={fontSemibold14}>
<BrandText style={fontRegular14}>
{squareSelectorOptions.placeholder}
</BrandText>
)}
Expand Down
4 changes: 2 additions & 2 deletions packages/components/video/FeedVideosList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useAppMode } from "../../hooks/useAppMode";
import useSelectedWallet from "../../hooks/useSelectedWallet";
import { NetworkFeature } from "../../networks";
import { zodTryParseJSON } from "../../utils/sanitize";
import { fontSemibold20 } from "../../utils/style/fonts";
import { fontRegular20, fontSemibold20 } from "../../utils/style/fonts";

Check failure on line 17 in packages/components/video/FeedVideosList.tsx

View workflow job for this annotation

GitHub Actions / check-js

'fontSemibold20' is defined but never used
import { layout } from "../../utils/style/layout";
import { ZodSocialFeedVideoMetadata } from "../../utils/types/feed";
import { BrandText } from "../BrandText";
Expand Down Expand Up @@ -93,7 +93,7 @@ export const FeedVideosList: React.FC<{
return (
<View style={[containerCStyle, style]}>
<View style={oneLineCStyle}>
<BrandText style={fontSemibold20} numberOfLines={1}>
<BrandText style={fontRegular20} numberOfLines={1}>
{title}
</BrandText>

Expand Down
4 changes: 2 additions & 2 deletions packages/components/video/UploadVideoButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TextStyle, TouchableOpacity, ViewStyle } from "react-native";

import Upload from "../../../assets/icons/upload_alt.svg";
import { neutral30, primaryColor } from "../../utils/style/colors";
import { fontSemibold14 } from "../../utils/style/fonts";
import { fontRegular14 } from "../../utils/style/fonts";
import { layout } from "../../utils/style/layout";
import { BrandText } from "../BrandText";
import { SVG } from "../SVG";
Expand Down Expand Up @@ -31,7 +31,7 @@ const buttonContainerStyle: ViewStyle = {
borderRadius: 999,
};
const buttonTextStyle: TextStyle = {
...fontSemibold14,
...fontRegular14,

color: primaryColor,
};
17 changes: 5 additions & 12 deletions packages/components/video/UploadVideoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
primaryColor,
secondaryColor,
} from "../../utils/style/colors";
import { fontSemibold14 } from "../../utils/style/fonts";
import { fontRegular14, fontSemibold14 } from "../../utils/style/fonts";
import { layout } from "../../utils/style/layout";
import {
CustomLatLngExpression,
Expand Down Expand Up @@ -274,7 +274,7 @@ export const UploadVideoModal: FC<{
<View style={uploadButtonStyle}>
<SVG source={Img} width={16} height={16} />
<SpacerRow size={1} />
<BrandText style={fontSemibold14}>
<BrandText style={fontRegular14}>
Video Thumbnail
</BrandText>
</View>
Expand Down Expand Up @@ -434,14 +434,7 @@ export const UploadVideoModal: FC<{
</TouchableOpacity>

<SpacerColumn size={3} />
<BrandText
style={[
fontSemibold14,
{
color: neutral77,
},
]}
>
<BrandText style={[fontRegular14, { color: neutral77 }]}>
Provide 2k video for highest video quality.
</BrandText>
<SpacerColumn size={2.5} />
Expand Down Expand Up @@ -506,7 +499,7 @@ const buttonContainerStyle: ViewStyle = {
backgroundColor: neutral30,
};
const buttonTextStyle: TextStyle = {
...fontSemibold14,
...fontRegular14,
color: primaryColor,
};
const imgStyle: ImageStyle = {
Expand All @@ -527,7 +520,7 @@ const footerStyle: ViewStyle = {
paddingVertical: layout.spacing_x2,
};
const footerTextStyle: TextStyle = {
...fontSemibold14,
...fontRegular14,

color: neutral77,
width: "55%",
Expand Down
22 changes: 6 additions & 16 deletions packages/components/video/VideoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ import {
neutralFF,
withAlpha,
} from "../../utils/style/colors";
import {
fontMedium13,
fontSemibold13,
fontSemibold14,
} from "../../utils/style/fonts";
import { fontRegular13, fontRegular14 } from "../../utils/style/fonts";
import { layout, RESPONSIVE_BREAKPOINT_S } from "../../utils/style/layout";
import { tinyAddress } from "../../utils/text";
import { ZodSocialFeedVideoMetadata } from "../../utils/types/feed";
Expand Down Expand Up @@ -74,7 +70,7 @@ export const VideoCard: React.FC<{

if (!video)
return (
<BrandText style={[fontSemibold13, { color: errorColor }]}>
<BrandText style={[fontRegular13, { color: errorColor }]}>
Video not found
</BrandText>
);
Expand Down Expand Up @@ -117,7 +113,7 @@ export const VideoCard: React.FC<{
/>

<View style={imgDurationBoxStyle}>
<BrandText style={fontSemibold13}>
<BrandText style={fontRegular13}>
{prettyMediaDuration(video.videoFile.videoMetadata?.duration)}
</BrandText>
</View>
Expand All @@ -139,21 +135,15 @@ export const VideoCard: React.FC<{
</CustomPressable>

<SpacerColumn size={1.5} />
<BrandText style={[fontSemibold14, { height: 40 }]} numberOfLines={2}>
<BrandText style={[fontRegular14, { height: 40 }]} numberOfLines={2}>
{video?.title.trim()}
</BrandText>

{!hideDescription && video?.description && (
<>
<SpacerColumn size={0.5} />
<BrandText
style={[
fontMedium13,
{
color: neutral77,
height: 36,
},
]}
style={[fontRegular13, { color: neutral77, height: 36 }]}
numberOfLines={2}
>
{video?.description?.trim()}
Expand Down Expand Up @@ -231,5 +221,5 @@ const positionButtonBoxStyle: ViewStyle = {
};

const contentNameStyle: TextStyle = {
...fontSemibold14,
...fontRegular14,
};

0 comments on commit e1b6790

Please sign in to comment.