Skip to content

Commit

Permalink
show draft in the simplified view
Browse files Browse the repository at this point in the history
  • Loading branch information
greenart7c3 committed Mar 15, 2024
1 parent 99e9514 commit f3f8bc1
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ import com.vitorpamplona.amethyst.ui.screen.loggedIn.ChannelHeader
import com.vitorpamplona.amethyst.ui.theme.DividerThickness
import com.vitorpamplona.amethyst.ui.theme.DoubleHorzSpacer
import com.vitorpamplona.amethyst.ui.theme.DoubleVertSpacer
import com.vitorpamplona.amethyst.ui.theme.Font14SP
import com.vitorpamplona.amethyst.ui.theme.HalfDoubleVertSpacer
import com.vitorpamplona.amethyst.ui.theme.HalfPadding
import com.vitorpamplona.amethyst.ui.theme.HalfStartPadding
import com.vitorpamplona.amethyst.ui.theme.Size25dp
import com.vitorpamplona.amethyst.ui.theme.Size30Modifier
import com.vitorpamplona.amethyst.ui.theme.Size34dp
Expand All @@ -131,10 +131,10 @@ import com.vitorpamplona.amethyst.ui.theme.WidthAuthorPictureModifier
import com.vitorpamplona.amethyst.ui.theme.boostedNoteModifier
import com.vitorpamplona.amethyst.ui.theme.channelNotePictureModifier
import com.vitorpamplona.amethyst.ui.theme.grayText
import com.vitorpamplona.amethyst.ui.theme.lessImportantLink
import com.vitorpamplona.amethyst.ui.theme.newItemBackgroundColor
import com.vitorpamplona.amethyst.ui.theme.normalNoteModifier
import com.vitorpamplona.amethyst.ui.theme.normalWithTopMarginNoteModifier
import com.vitorpamplona.amethyst.ui.theme.placeholderText
import com.vitorpamplona.amethyst.ui.theme.replyBackground
import com.vitorpamplona.amethyst.ui.theme.replyModifier
import com.vitorpamplona.quartz.events.AppDefinitionEvent
Expand Down Expand Up @@ -1113,11 +1113,6 @@ fun SecondUserInfoRow(
DisplayPoW(pow)
}

if (note.isDraft()) {
Spacer(StdHorzSpacer)
DisplayDraft()
}

DisplayOts(note, accountViewModel)
}
}
Expand All @@ -1126,10 +1121,10 @@ fun SecondUserInfoRow(
fun DisplayDraft() {
Text(
"Draft",
color = MaterialTheme.colorScheme.lessImportantLink,
fontSize = Font14SP,
fontWeight = FontWeight.Bold,
color = MaterialTheme.colorScheme.placeholderText,
maxLines = 1,
modifier = HalfStartPadding,
)
}

Expand Down Expand Up @@ -1175,6 +1170,11 @@ fun FirstUserInfoRow(
}
}

if (baseNote.isDraft()) {
Spacer(StdHorzSpacer)
DisplayDraft()
}

TimeAgo(baseNote)

MoreOptionsButton(baseNote, editState, accountViewModel, nav)
Expand Down

0 comments on commit f3f8bc1

Please sign in to comment.