Skip to content

Commit

Permalink
More friendly behavior when GroupedList header is too long (#22020)
Browse files Browse the repository at this point in the history
* icon of group header is not shrink

* Change files

* group header of GroupedList should show '...' when it is too long

* update snapshot

Co-authored-by: ShuiRuTian <15898297@qq.com>
  • Loading branch information
ShuiRuTian and ShuiRuTian committed Apr 19, 2022
1 parent b277c0c commit 6da8d2a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "icon of group header is not shrink",
"packageName": "@fluentui/react",
"email": "15898297@qq.com",
"dependentChangeType": "patch"
}
Expand Up @@ -7930,6 +7930,7 @@ exports[`DetailsList renders List with hidden checkboxes correctly 1`] = `
color: #605e5c;
cursor: default;
display: flex;
flex-shrink: 0;
font-size: 12px;
height: 48px;
justify-content: center;
Expand Down Expand Up @@ -7996,6 +7997,7 @@ exports[`DetailsList renders List with hidden checkboxes correctly 1`] = `
font-size: 16px;
font-weight: 600;
outline: 0px;
overflow: hidden;
padding-left: 12px;
text-overflow: ellipsis;
white-space: nowrap;
Expand Down Expand Up @@ -8795,6 +8797,7 @@ exports[`DetailsList renders List with hidden checkboxes correctly 1`] = `
color: #605e5c;
cursor: default;
display: flex;
flex-shrink: 0;
font-size: 12px;
height: 48px;
justify-content: center;
Expand Down Expand Up @@ -8861,6 +8864,7 @@ exports[`DetailsList renders List with hidden checkboxes correctly 1`] = `
font-size: 16px;
font-weight: 600;
outline: 0px;
overflow: hidden;
padding-left: 12px;
text-overflow: ellipsis;
white-space: nowrap;
Expand Down
Expand Up @@ -147,6 +147,7 @@ export const getStyles = (props: IGroupHeaderStyleProps): IGroupHeaderStyles =>
checkExpandResetStyles,
{
display: 'flex',
flexShrink: 0,
alignItems: 'center',
justifyContent: 'center',
fontSize: fonts.small.fontSize,
Expand Down Expand Up @@ -189,6 +190,7 @@ export const getStyles = (props: IGroupHeaderStyleProps): IGroupHeaderStyles =>
outline: 0,
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
overflow: 'hidden',
},
],
dropIcon: [
Expand Down

0 comments on commit 6da8d2a

Please sign in to comment.