Expand description
One note as a row of a list: who wrote it and when, what it says, its images, its videos, the notes it quotes, and a preview of the web page it links to. The feed, a thread and the notes on a profile are lists of these.
The authorโs picture sits beside their name, and what they wrote runs under both, the full width of the list. Set in beside the picture, a note would leave a margin as wide as the picture empty all the way down.
How large a row is set is the readerโs to say, in the settings: see
RowSizes.
A long note is cut, and says so with a button under its text that
shows the rest where the note is, in its row: nothing above the row
moves, and what is under it makes room. Under all of the text the
button shows less again. See Reading.
Structsยง
- Faces ๐
- What text a note marks is set in, beside the size and the face all its text has: the faces of what is stressed and of code, and the colours of what is quiet and of what is behind code.
- Reacting
- What a row is told of reacting to notes.
- RowContext
- What every row of a list is built with, beside its own note.
- RowSizes
- The sizes a row is set in, all from one: the size of a noteโs text, which the settings keep.
Enumsยง
- Bookmarking
- What a row is told of the accountโs bookmarks.
- Note
Link ๐ - Where a click on part of a noteโs text leads.
- Reading ๐
- How much of what a long note says is shown.
Constantsยง
- BEHIND_
CODE_ ๐ALPHA - BOOKMARK_
REASON_ ๐MAX_ CHARS - How much of why the bookmarks could not be read is said to whoever points at the bookmark action.
- CHAR_
WIDTH_ ๐PER_ SIZE - CODE_
BLOCK_ ๐PADDING - Lines of code that stand apart: the room around them, and the corners of what is behind them.
- CODE_
BLOCK_ ๐RADIUS - CODE_
CHAR_ ๐WIDTH_ PER_ SIZE - How wide a letter of code is, as a share of its size: all of them are.
- CODE_
PADDING ๐ - CODE_
RADIUS ๐ - The corners of what stands behind code, and how far it reaches past the code at either side. It takes no room: the text is where it would be without it.
- FIGURE_
WIDTH_ ๐PER_ SIZE - How wide a figure of a count is, as a share of the countโs size, at the most.
- FOLD_
GAP ๐ - FOLD_
PADDING_ ๐AFTER - FOLD_
PADDING_ ๐BEFORE - FOLD_
PADDING_ ๐Y - The button under a long noteโs text, which shows more of it or less: the room above and under its label, the room before the label and after the arrows beside it, and the gap between the two. Less room after than before: the arrows are drawn well inside the square they are given, and what shows on either side is then the same.
- HEADING_
SCALES ๐ - How much larger than the text the headings of the first three levels are. The others are as large as the text, and bold as these.
- LINE_
HEIGHT_ ๐PER_ SIZE - What
estimated_note_heightassumes of text it hasnโt seen laid out: how tall a line is and how wide a character is on average, both as a share of the textโs size. Read off rows laid out with the real text renderer;the_estimate_is_close_to_the_measured_rowholds them to it. - MARK_
RADIUS ๐ - How round the corners of the line around the marked row are.
- MENTION_
WIDTH_ ๐CHARS - How many letters wide someoneโs name is taken to be, in a cell of a table, before it is known who they are.
- NOTE_
ACTION_ ๐DIM - How much dimmer than the text an action is that hasnโt been taken.
- NOTE_
ACTION_ ๐GAP - The gap between an actionโs icon and the count beside it.
- NOTE_
ACTION_ ๐PADDING - The line of actions under a note: how much room each action has around it.
- NOTE_
ACTION_ ๐WIDTH - How wide each action is, count and all, so that the same action sits at the same place in every row whatever the counts are. Narrow enough that the four of them and what is at the right end of the line all have their room in the narrowest popup, at the largest size.
- NOTE_
AVATAR_ ๐GAP - NOTE_
AVATAR_ ๐SIZE - How wide the authorโs picture is, and the gap between it and their name.
- NOTE_
DIVIDER_ ๐HEIGHT - The thickness of the line under a row.
- NOTE_
IMAGE_ ๐FALLBACK_ HEIGHT - NOTE_
IMAGE_ ๐RADIUS - A noteโs image is shown as wide as the note, from one edge to the
other, unless it is narrower than that itself (see
shown_size), with its corners rounded this much. Until it has loaded it is given the room it will take, if the note says its size, and this height if not. - NOTE_
PADDING_ ๐TOP - Space above a rowโs content, and between its parts.
- NOTE_
SPACING ๐ - QUIET_
TEXT_ ๐ALPHA - How much of the textโs colour what a note quotes is set in, and how much of it stands behind code.
- RULE_
ALPHA ๐ - RULE_
HEIGHT ๐ - A rule between two parts of a note: how thick, and how much of the textโs colour.
- TABLE_
HEAD_ ๐LINE_ ALPHA - How much of the textโs colour the line under the first row of a table is, and the lines under the others.
- TABLE_
LINE_ ๐ALPHA - UNMEASURED_
LIST_ ๐WIDTH - How wide a list is taken to be before it has been laid out once: as wide as the popup opens, less the room around the list.
- WHO_
AVATAR_ ๐SIZE - How wide the picture of one of them is.
- WHO_
MAX_ ๐HEIGHT - WHO_
ROW_ ๐HEIGHT - WHO_
WIDTH ๐ - How wide the list of who left something on a note is, how tall one of them is in it, and how tall the list is at the most: more of them are scrolled to.
Functionsยง
- action_
button ๐ - One of a noteโs actions, to be pressed: its icon in
color, the count beside it when there is something to count, and what pressing it does, if anything. - action_
cell ๐ action, one of a noteโs actions, in the room every action is given.- action_
height ๐ - How tall the line of actions under a note is: its icons or its counts, whichever are taller, and the room around them.
- action_
showing ๐ - As
action_button, withpicturewhere its icon would be: what is no icon, as the emoji a note was reacted to with. - block ๐
- What stands apart from a noteโs text: lines of code, on what stands behind code, from one edge to the other; a rule; a table.
- block_
height ๐ - How tall what stands apart from a noteโs text will be, near enough: lines of code wrapped at how many of its letters fit, a rule, and a table of rows a line of text tall each.
- bookmark_
action ๐ - The bookmark action of
note: a ribbon, filled and inaccentwhen the account has the note bookmarked, which pressing it changes. It shows the change at once, while the changed list is on its way.Nonefor an account that keeps no bookmarks. - counted ๐
action, one of a noteโs actions that counts what others left on it, with who they were under it for whoever asks: a click on it with the right button shows them, and one anywhere else puts them away.ownis what the action itself opens under it, if it opens something and that is open, and what closing it says.- estimated_
note_ height - How tall a noteโs row will be, near enough, before it has been laid out,
set in
sizesin a listwidthwide: what the note says, all of it if a long one showsin_full, and around it the room above, the authorโs picture or their name beside it, whichever is taller, the line of actions, and the line under the row. The list replaces this with the measured height once the row has been in view. - fold_
button ๐ - The button under the text of the long note
id: it shows the rest of the note where it is, in a row that shows it cut, and cuts it again in one that shows itin_full. In the middle of the row, as tall at every size asfold_heightsays; the way to more stands out as a button does, and the way back is no louder than the actions under it. - fold_
height ๐ - How tall the button under a long noteโs text is: its label, and the room above and under it.
- line_
height ๐ - How tall a line of text of
sizeis. - link_
line - A link on a line of its own, in text of
size: a picture that could not be shown, a website. - marking
row, the row told apart byid, with a line around it in the accent colour if it is the one the keyboard is at. The line is drawn over the rowโs edge and takes no room: a row is the same size marked and not.- note_
actions ๐ - The line of actions under a note: answer it, repost or quote it, react
to it, zap it. Each says how many did (for zaps, how many sats); the
accountโs own repost and like are in
accent. Reposting opens a menu under the action, which a click anywhere else puts away. An account that canโt publish sees the counts of the first three and can press none. Anyone can zap an author who has a Lightning address. At the right end, copying a link to the note, bookmarking it, and, once that is known, how many relays it was seen on. - note_
being_ written - A note that is being written, as its row would show it once it is out: who writes it, and all it says. Without the line of actions and the line under a row: there is nothing to act on yet, and no row after it.
- note_
image ๐ - One of a noteโs images: the picture, once it is here; the room it will take, until then; and if it canโt be had, the link it came as.
- note_
row - One row: the authorโs picture, and beside it who they are and how long ago they wrote; under those, as wide as the row, what the note says and the line of actions; and under it all a line that sets the row apart from the next. The picture and the name lead to the authorโs profile.
- note_
text ๐ - What a note says, the
segmentsof it: its text as rich text, and what stands apart from the text between the stretches of it, one under the other. - opening_
profile ๐ part, a part of a noteโs row that stands for its author, opening their profile when it is clicked.- opening_
thread row, the row of the noteid, opening that noteโs thread when it is clicked anywhere that doesnโt lead somewhere of its own (a link, a picture, the author). Not while a menu is open over the list: a click on a row beside the menu was meant to put the menu away, and that is all it does.- parts ๐
- The parts what a note says is shown in, one under the other: each stretch of its text, and each thing that stands apart from it.
- reaction_
action ๐ - The reaction action of
note: a heart, with how many reacted. Pressed, it offers what to react with under it (seereaction_menu), over it where there is no room under, and a click anywhere else puts the offer away. Once the account has reacted it shows what with, inaccent: the heart filled, or the emoji in the iconโs place, set no taller than the line. Once is enough: it canโt be pressed again. - relay_
name - What a relay is called: its address without the scheme, which is the same for nearly all of them, and without a slash at its end.
- repost_
menu ๐ - What the repost action offers for the note
id: reposting it as it is, which is done once (reposted) and not again, or quoting it in a note of oneโs own. The one the keyboard isat, if it is at one, is shown as one the pointer is over. - rich ๐
spansas text of the noteโs size,widthwide.- said ๐
column, with whatnotesays under what is in it already: its text, as much of it asreadingsays, with the button that shows more of a long one or less; its images, its videos, the notes it quotes (each as a card if it is at hand, and as a link if not), and the preview of the page it links to.- said_
height ๐ - How tall what
notesays will be, near enough, set insizesin roomwidthwide and read asreadingsays, with the space above each part of it: each line of its text wrapped at a typical line length, the button under a long one, each image at the height it will be shown, each video in the room it has, each note it quotes as its card or its link, and the preview of a page it links to, which is the height it is. - seen_on ๐
- How many relays a note was seen on, for the right end of its line of actions: nothing to press, and which relays they were for whoever points at it. Set as an action is, so that it lines up with them.
- seen_
on_ ๐width - How wide the room is that is kept at the right end of a line of actions for how many relays the note was seen on: its icon and a count of two figures. Kept before that is known as after, so that the bookmark beside it stays where it is when it comes.
- share_
action ๐ - The share action of
note: two links of a chain, which copy a link to the note that anyone can open. Once that is done it is a tick, inaccent, until the popup closes or another noteโs link is copied. - spans ๐
- The pieces
segmentsof a noteโs text, as spans: links and mentions can be clicked, and they and hashtags are set inaccent; what the note marks is set as it marks it.stressed, all of it is bold: what says what the columns of a table are. - stands_
apart ๐ - Whether
segmentstands apart from the text. - who_
and_ ๐when - The first line of a row: the picture of who wrote
note, their name, and how long ago they wrote it. - who_did ๐
- What one of those who left something on a note left, at the right end of their line: the emoji they reacted with, or a heart; how much they zapped; and nothing for a repost, which is all the list says.
- who_
menu ๐ - Who left something on a note, under the count of them: what the list is of, and each of them on a line, with their picture, their name and what they left. A press on one opens their profile. Until the store has been read it says so, and if nobody did, that.