Skip to content

Commit

Permalink
Revert "Add feed icon to reader screen"
Browse files Browse the repository at this point in the history
This reverts commit a9a0af0.
  • Loading branch information
msasikanth committed Aug 10, 2024
1 parent 55a8d77 commit f5b057e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
13 changes: 0 additions & 13 deletions shared/src/commonMain/composeResources/files/reader/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,12 @@ figcaption {
font-size: 14px;
line-height: 1.6;
}
.row {
display: flex;
justify-content: center;
align-items: center;
}
.column {
margin-inline-start: 16px;
flex: 1;
}
.caption {
font-size: 12px;
}
.feedName {
margin-bottom: 8px;
}
.feedIcon {
width: 32px;
height: auto;
}
img, figure, video, div, object {
max-width: 100%;
height: auto !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ object ReaderHTML {
title: String,
feedName: String,
feedHomePageLink: String,
feedIcon: String,
publishedAt: String
): String {
val readabilityJS = readFile("readability.js")
Expand All @@ -35,7 +34,6 @@ object ReaderHTML {
postMetadata(
feedName = feedName,
feedHomePageLink = feedHomePageLink,
feedIcon = feedIcon,
publishedAt = publishedAt,
hasTitle = title.isNotBlank()
)
Expand Down Expand Up @@ -69,7 +67,6 @@ object ReaderHTML {
private fun postMetadata(
feedName: String,
feedHomePageLink: String,
feedIcon: String,
publishedAt: String,
hasTitle: Boolean,
): String {
Expand All @@ -81,13 +78,8 @@ object ReaderHTML {
// language=HTML
appendLine(
"""
<div class="row">
<img class="feedIcon" src="$feedIcon" alt="Feed Icon">
<div class="column">
<div class ="feedName"><a href='$feedHomePageLink'>$feedName</a></div>
<div class="caption">$publishedAt</div>
</div>
</div>
<div class ="feedName"><a href='$feedHomePageLink'>$feedName</a></div>
<div class="caption">$publishedAt</div>
<hr class="top-divider">
"""
.trimIndent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ internal fun ReaderScreen(
title = state.title!!,
feedName = state.feed!!.name,
feedHomePageLink = state.feed!!.homepageLink,
feedIcon = state.feed!!.icon,
publishedAt = state.publishedAt!!
)

Expand Down

0 comments on commit f5b057e

Please sign in to comment.