Skip to content

Commit

Permalink
Implement mandatory full width on referenced notes and articles
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarIlic committed Nov 1, 2024
1 parent 404c129 commit 33bfca6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.primal.android.notes.feed.note.ui

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down Expand Up @@ -35,7 +36,9 @@ fun ReferencedArticlesColumn(
val data = nostrResourceUi.referencedArticle
checkNotNull(data)
ReferencedArticleCard(
modifier = Modifier.padding(vertical = 4.dp),
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 4.dp),
data = FeedArticleUi(
aTag = data.aTag,
eventId = data.eventId,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.primal.android.notes.feed.note.ui

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.CardDefaults
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -36,7 +37,9 @@ fun ReferencedNotesColumn(
val data = nostrResourceUi.referencedNote
checkNotNull(data)
ReferencedNoteCard(
modifier = Modifier.padding(vertical = 4.dp),
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 4.dp),
data = FeedPostUi(
postId = data.postId,
repostId = null,
Expand Down

0 comments on commit 33bfca6

Please sign in to comment.