Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review page styling #216

Merged
merged 5 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/app/(tabs)/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const SearchPage: React.FC = () => {
.catch((error) => console.error(error));

axios
.get(`${BASE_URL}/media?sort=review&type=track`)
.get(`${BASE_URL}/media?sort=review&type=track&limit=13`)
.then((response) => setInitialSongs(response.data))
.catch((error) => console.error(error));

Expand Down
4 changes: 3 additions & 1 deletion frontend/app/ReviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,8 @@ const styles = StyleSheet.create({
fontWeight: "bold",
color: "#000", // Adjust color as needed
flexWrap: "wrap",
marginTop: 12,
textAlign: "left",
width: "100%",
},
artistName: {
Expand All @@ -585,7 +587,7 @@ const styles = StyleSheet.create({
width: "100%",
justifyContent: "center",
alignItems: "center",
marginVertical: -20,
marginTop: 8,
paddingRight: 20, // Add this to account for the left padding of reviewContainer
},

Expand Down
4 changes: 1 addition & 3 deletions frontend/components/search/AlbumSearchCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ const SearchCard: React.FC<SearchCardProps> = ({

const styles = StyleSheet.create({
cardContainer: {
alignItems: "flex-start",
marginRight: 25,
marginBottom: 16,
width: 140,
width: 160,
},
albumContainer: {
flexDirection: "row", // Set horizontal layout to align rank and cover side-by-side
Expand Down
1 change: 1 addition & 0 deletions frontend/components/search/SearchResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ const styles = StyleSheet.create({
flexDirection: "row",
flexWrap: "wrap",
gap: 10,
width: "100%",
},
songsList: {
marginRight: 20,
Expand Down
Loading