-
Notifications
You must be signed in to change notification settings - Fork 156
Handle title text overflow nicely? #131
Comments
Nice proposal, and I think it must be supported, but additional property for |
OK. Do you think it could be at the plugin level? |
Maybe, but I have no confidence about it. res.add({
title: { // can be String or Object
text: 'single line text',
singleLine: true
},
...
}); |
That looks fine to me. |
Resolved at 84be796, needs docs |
I had forgot to mention that my only concern is that the object form of the title is no longer backward compatible with previous versions. To work around this we could use a new name for the object form and continue to use a string title for older releases. What do you think? |
Oh, you don't need to worry about it. I wrote a code to support both string and object. so it has backward compatibility. no need to workaround. |
I see. And a new plugin in an older hain will not produce problems either? |
No, Sorry, I misunderstood. new plugin with new API will not be listed in older hain if they write new API version in |
That's great - thanks. |
The titles appear to hit the |
Bump @appetizermonster 😉 |
@notatestuser Oh sorry, I'll make a patch for it soon. |
Thanks! Get Outlook for iOS On Thu, Jun 16, 2016 at 10:53 AM +0800, "Heejin Lee" notifications@github.com wrote: @notatestuser Oh sorry, I'll make a patch for it soon. — |
Resolved at 202287c |
Great! Please bump up the API version in the next release so I can target this fix. Thanks. 😄 |
Okay, I'll |
Hey, do you have any idea when this will be released? |
@notatestuser Sorry for late, I'm so busy for my work these days, I think it will be released with several another additions in at least two weeks. |
Bump. I would really like to see this fixed. 😃 |
A list item's description text uses
text-overflow: ellipsis
to clip overflow nicely when the content is longer than its allotted space. However, titles can clip off long words or wrap to new lines when they are long and contain spaces. This can look a bit funky in some places.Proposal: Add a new attribute in
SearchResult
to applytext-overflow: ellipsis
* on the title text. We would only want to do this optionally per plugin and not in all of them. It's still useful to wrap titles when calculating a long formula inhain-plugin-math
, for instance.Example of long word clip:
Example of multi-line break:
* The actual styles we need to apply are something like:
I've experimented with this locally and it seems to work fine:
What do you think?
The text was updated successfully, but these errors were encountered: