-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Text): support multiline and fixed width ellipsis #1122
Merged
IsaevAlexandr
merged 1 commit into
gravity-ui:next
from
IsaevAlexandr:feature/text-elipsis
Dec 11, 2023
Merged
feat(Text): support multiline and fixed width ellipsis #1122
IsaevAlexandr
merged 1 commit into
gravity-ui:next
from
IsaevAlexandr:feature/text-elipsis
Dec 11, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Preview is ready. |
amje
changed the title
feat: support multyline and fixed width ellipsis in
feat(Text): support multiline and fixed width ellipsis
Nov 14, 2023
Text
component
amje
requested changes
Nov 14, 2023
amje
reviewed
Nov 14, 2023
IsaevAlexandr
force-pushed
the
feature/text-elipsis
branch
from
November 20, 2023 14:05
01df15c
to
c5487b0
Compare
amje
requested changes
Nov 21, 2023
IsaevAlexandr
force-pushed
the
feature/text-elipsis
branch
from
November 29, 2023 10:07
c5487b0
to
727b3d4
Compare
/fixed |
amje
requested changes
Dec 4, 2023
src/components/Text/text/text.ts
Outdated
@@ -71,6 +71,13 @@ export interface TextBaseProps { | |||
* - text-overflow: ellipsis; | |||
*/ | |||
ellipsis?: boolean; | |||
/** | |||
* The number of whole lines of text after which the content will be cut off. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a number but boolean
IsaevAlexandr
requested review from
resure,
ogonkov,
sofiushko,
Raubzeug,
zamkovskaya,
SeqviriouM,
mournfulCoroner,
DaffPunks,
Lunory,
kseniya57,
jhoncool,
NikitaCG,
LakeVostok,
goshander,
axtk and
ValeraS
as code owners
December 6, 2023 12:03
IsaevAlexandr
force-pushed
the
feature/text-elipsis
branch
from
December 11, 2023 12:57
727b3d4
to
f536352
Compare
amje
approved these changes
Dec 11, 2023
IsaevAlexandr
force-pushed
the
feature/text-elipsis
branch
from
December 11, 2023 13:07
f536352
to
fd55499
Compare
ogonkov
reviewed
Dec 11, 2023
}; | ||
|
||
if (typeof ellipsisLines === 'number') { | ||
style.WebkitLineClamp = ellipsisLines; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What the point to use inline style, and not modifier in stylesheet?
amje
pushed a commit
that referenced
this pull request
Feb 1, 2024
amje
pushed a commit
that referenced
this pull request
Feb 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.