-
Notifications
You must be signed in to change notification settings - Fork 141
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
fix: Balloon のコンテンツを折り返すように修正する #4706
Closed
Closed
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9d2379f
fix: Balloon コンポーネントのコンテンツを折り返すようにする
s-sasaki-0529 beb94e8
fix: break-all に変更する
s-sasaki-0529 e133b61
Merge remote-tracking branch 'origin/master' into SHRUI-941-SHRUI-984
s-sasaki-0529 6a92208
fix: やっぱり break-words に
s-sasaki-0529 805bb69
fix: break-words ならデフォルトで設定されるから不要そう
s-sasaki-0529 9fc1f24
fix: Storybook をややリアルなデータに修正
s-sasaki-0529 55de4fa
fix: 英語のほうも lorem ipsum にする
s-sasaki-0529 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ const balloon = tv({ | |
'shr-drop-shadow-[0_2px_2.5px_theme(colors.transparency.30)]', | ||
// Safariでdrop-shadowが残り続けてしまうバグの対応 | ||
'shr-will-change-[filter]', | ||
'shr-whitespace-nowrap', | ||
'shr-break-all', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. all は単語境界以外でも折り返しちゃうから強すぎるかも…? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. この方針で良ければ同様の事象が発生する |
||
'shr-bg-white', | ||
'shr-text-black', | ||
'after:shr-block', | ||
|
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.
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.
とりあえず nowrap 消しだだけ。
けどあえて折り返さないようにした意図がある気もしました。問題なければ同様の対応を
Button
StatusLabel
にも行いたいですがどうですかね。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.
nowrapを指定しないと親要素の横幅に依存してしまうので設定していたような記憶...
消すの難しいかも?
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.
ありそうだなと思いつつどういう実害があるか再現せず…。
Tooltip の場合は Balloon は Portal化されるから親要素のサイズに依存しないんですかね。
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.
あー、balloonを直接利用するパターンって実質存在していないのか...
この修正いれる際に各プロダクトのballoon -> tooltip を促すためにexport調整しても言いかも?
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.
うーん際どい。meyasu の InputWithBalloon は tooltip 使うじゃ解決できないかな。
https://github.com/search?q=org%3Akufu+%3CBalloon&type=code
https://618dc41b452a67003aa1fedb-gllmsnjkra.chromatic.com/?path=/story/parts-inputwithballoon--default
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.
TooltipPortalの意図を聞かないとわからなさそうですね〜