Fix text wrapping issues
Mentions were getting wrapped in a horizontal, which breaks the outer horizontal_wrapped in note contents. When this breaks, it seems to be breaking subsequent wrapping in notes. Remove the horizontal to the remaining text wrapping issues! Changelog-Fixed: Fix text wrapping glitches Fixes: https://github.com/damus-io/notedeck/issues/33 Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -158,8 +158,8 @@ pub fn render_note_contents(
|
||||
txn,
|
||||
profile.pubkey(),
|
||||
)
|
||||
.show(ui)
|
||||
.inner;
|
||||
.show(ui);
|
||||
|
||||
if act.is_some() {
|
||||
note_action = act;
|
||||
}
|
||||
@@ -172,8 +172,8 @@ pub fn render_note_contents(
|
||||
txn,
|
||||
npub.pubkey(),
|
||||
)
|
||||
.show(ui)
|
||||
.inner;
|
||||
.show(ui);
|
||||
|
||||
if act.is_some() {
|
||||
note_action = act;
|
||||
}
|
||||
|
||||
@@ -72,8 +72,7 @@ pub fn reply_desc(
|
||||
)
|
||||
.size(size)
|
||||
.selectable(selectable)
|
||||
.show(ui)
|
||||
.inner;
|
||||
.show(ui);
|
||||
|
||||
if action.is_some() {
|
||||
note_action = action;
|
||||
@@ -96,8 +95,7 @@ pub fn reply_desc(
|
||||
)
|
||||
.size(size)
|
||||
.selectable(selectable)
|
||||
.show(ui)
|
||||
.inner;
|
||||
.show(ui);
|
||||
|
||||
if action.is_some() {
|
||||
note_action = action;
|
||||
@@ -119,8 +117,7 @@ pub fn reply_desc(
|
||||
)
|
||||
.size(size)
|
||||
.selectable(selectable)
|
||||
.show(ui)
|
||||
.inner;
|
||||
.show(ui);
|
||||
|
||||
if action.is_some() {
|
||||
note_action = action;
|
||||
@@ -144,8 +141,7 @@ pub fn reply_desc(
|
||||
)
|
||||
.size(size)
|
||||
.selectable(selectable)
|
||||
.show(ui)
|
||||
.inner;
|
||||
.show(ui);
|
||||
|
||||
if action.is_some() {
|
||||
note_action = action;
|
||||
@@ -166,8 +162,7 @@ pub fn reply_desc(
|
||||
)
|
||||
.size(size)
|
||||
.selectable(selectable)
|
||||
.show(ui)
|
||||
.inner;
|
||||
.show(ui);
|
||||
|
||||
if action.is_some() {
|
||||
note_action = action;
|
||||
|
||||
Reference in New Issue
Block a user