mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
This commit is contained in:
parent
b812027281
commit
5aba1e38a2
@ -69,6 +69,7 @@ function styles_(props: Props) {
|
||||
},
|
||||
toolbarStyle: {
|
||||
marginBottom: 0,
|
||||
minWidth: 0,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
@ -28,6 +28,7 @@ class ToolbarBaseComponent extends React.Component<Props, any> {
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
boxSizing: 'border-box',
|
||||
minWidth: 0,
|
||||
};
|
||||
|
||||
const leftItemComps: any[] = [];
|
||||
|
@ -43,7 +43,10 @@ export default function ToolbarButton(props: Props) {
|
||||
if (!isEnabled) classes.push('disabled');
|
||||
|
||||
const onClick = getProp(props, 'onClick');
|
||||
|
||||
const style: React.CSSProperties = {
|
||||
whiteSpace: 'nowrap',
|
||||
overflow: 'hidden',
|
||||
textOverflow: 'ellipsis' };
|
||||
return (
|
||||
<StyledRoot
|
||||
className={classes.join(' ')}
|
||||
@ -56,7 +59,7 @@ export default function ToolbarButton(props: Props) {
|
||||
}}
|
||||
>
|
||||
{icon}
|
||||
{title}
|
||||
<span style={style}>{title}</span>
|
||||
</StyledRoot>
|
||||
);
|
||||
}
|
||||
|
@ -23,6 +23,9 @@ export const StyledRoot = styled.a<RootProps>`
|
||||
font-size: ${(props: RootProps) => props.theme.toolbarIconSize * 0.8}px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&:hover {
|
||||
background-color: ${(props: RootProps) => props.disabled ? 'none' : props.theme.backgroundColorHover3};
|
||||
|
Loading…
Reference in New Issue
Block a user