File tree Expand file tree Collapse file tree 2 files changed +32
-26
lines changed
mastodon/features/circles/components Expand file tree Collapse file tree 2 files changed +32
-26
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Icon from '../../../components/icon';
6
6
import IconButton from '../../../components/icon_button' ;
7
7
import { openModal } from '../../../actions/modal' ;
8
8
import { deleteCircle } from '../../../actions/circles' ;
9
+ import { defaultMediaVisibility } from '../../../components/status' ;
9
10
10
11
const messages = defineMessages ( {
11
12
deleteTitle : { id : 'confirmations.delete_circle.title' , defaultMessage : 'Delete' } ,
@@ -45,13 +46,15 @@ class Circle extends React.PureComponent {
45
46
const { text, intl } = this . props ;
46
47
47
48
return (
48
- < button className = 'circle-link' onClick = { this . handleEditClick } >
49
- < div >
49
+ < div className = 'circle-link' >
50
+ < button className = 'circle-edit-button' onClick = { this . handleEditClick } >
50
51
< Icon id = 'circle-o' className = 'column-link__icon' fixedWidth />
51
52
{ text }
52
- </ div >
53
- < IconButton icon = 'trash' size = { 16 } title = { intl . formatMessage ( messages . deleteTitle ) } onClick = { this . handleDeleteClick } />
54
- </ button >
53
+ </ button >
54
+ < button className = 'circle-delete-button' title = { intl . formatMessage ( messages . deleteTitle ) } onClick = { this . handleDeleteClick } >
55
+ < Icon id = 'trash' className = 'column-link__icon' fixedWidth />
56
+ </ button >
57
+ </ div >
55
58
) ;
56
59
}
57
60
Original file line number Diff line number Diff line change @@ -6327,34 +6327,37 @@ noscript {
6327
6327
}
6328
6328
}
6329
6329
6330
- button .circle-link {
6331
- background : lighten ($ui-base-color , 8% );
6332
- color : $primary-text-color ;
6330
+ .circle-link {
6333
6331
display : flex ;
6334
- font-size : 16px ;
6335
- padding : 15px ;
6336
- border : 0 ;
6337
- width : 100% ;
6338
- text-align : left ;
6339
- text-decoration : none ;
6340
- cursor : pointer ;
6341
6332
6342
- & :hover ,
6343
- & :focus ,
6344
- & :active {
6345
- background : lighten ($ui-base-color , 11% );
6333
+ .circle-edit-button {
6334
+ flex : 1 1 auto ;
6346
6335
}
6347
6336
6348
- & :focus {
6349
- outline : 0 ;
6337
+ .circle-delete-button {
6338
+ flex : 0 0 auto ;
6350
6339
}
6351
6340
6352
- div {
6353
- flex : 1 1 auto ;
6354
- }
6341
+ .circle-edit-button ,
6342
+ .circle-delete-button {
6343
+ background : lighten ($ui-base-color , 8% );
6344
+ color : $primary-text-color ;
6345
+ padding : 15px ;
6346
+ font-size : 16px ;
6347
+ text-align : left ;
6348
+ text-decoration : none ;
6349
+ cursor : pointer ;
6350
+ border : 0 ;
6355
6351
6356
- .icon-button {
6357
- flex : 0 0 auto ;
6352
+ & :hover ,
6353
+ & :focus ,
6354
+ & :active {
6355
+ background : lighten ($ui-base-color , 11% );
6356
+ }
6357
+
6358
+ & :focus {
6359
+ outline : 0 ;
6360
+ }
6358
6361
}
6359
6362
}
6360
6363
You can’t perform that action at this time.
0 commit comments