Repository navigation
fix(Mobile): Fix the feature drawer layout on phones #8994
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
69b69a6
fix(Mobile): Keep drawers, segment rules and the feature summary usab…
talissoncosta 5e78316
fix(Mobile): Add the missing newline at the end of _metrics.scss
talissoncosta 2b6c3f8
refactor(Mobile): Simplify the drawer spacing and mobile height rules
talissoncosta 700b527
fix(Mobile): Keep drawers full width between 544px and 768px
talissoncosta 1f4718c
fix(Mobile): Let long drawer titles truncate and keep rule fields ins…
talissoncosta c1f35f2
fix(Mobile): Fit drawers to the visible screen when the browser toolb…
talissoncosta b72b54c
chore(Mobile): Trim comments that repeat the code
talissoncosta 5593d85
fix(Mobile): Keep the responsive drawer title after creating a feature
talissoncosta 8e0b379
fix(IconButton): Keep its size when a flex row runs out of space
talissoncosta 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 hidden or 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
32 changes: 32 additions & 0 deletions
32
frontend/web/components/feature-summary/FeatureModalTitle.tsx
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import React, { FC } from 'react' | ||
| import IconButton from 'components/base/IconButton' | ||
| import Icon from 'components/icons/Icon' | ||
| import Utils from 'common/utils/utils' | ||
|
|
||
| type FeatureModalTitleProps = { | ||
| name: string | ||
| label: string | ||
| } | ||
|
|
||
| const FeatureModalTitle: FC<FeatureModalTitleProps> = ({ label, name }) => ( | ||
| <> | ||
| <span className='text-truncate'> | ||
| {/* Phones show just the name so the copy button stays beside it */} | ||
| <span className='d-none d-md-inline'>{label}: </span> | ||
| {name} | ||
| </span> | ||
| <IconButton | ||
| variant='ghost' | ||
| size='small' | ||
| aria-label='Copy feature name' | ||
| onClick={() => { | ||
| Utils.copyToClipboard(name) | ||
| }} | ||
| className='ms-2' | ||
| > | ||
| <Icon width={16} name='copy' /> | ||
| </IconButton> | ||
| </> | ||
| ) | ||
|
|
||
| export default FeatureModalTitle |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.