You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-13 22:12:50 +02:00
Desktop: Fixes #1699: Hide toolbar button text when it is below a certain size
This commit is contained in:
@@ -137,14 +137,17 @@ class HeaderComponent extends React.Component {
|
|||||||
opacity: isEnabled ? 1 : 0.4,
|
opacity: isEnabled ? 1 : 0.4,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const title = options.title ? options.title : '';
|
||||||
|
|
||||||
return <a
|
return <a
|
||||||
className={classes.join(' ')}
|
className={classes.join(' ')}
|
||||||
style={finalStyle}
|
style={finalStyle}
|
||||||
key={key}
|
key={key}
|
||||||
href="#"
|
href="#"
|
||||||
|
title={title}
|
||||||
onClick={() => { if (isEnabled) options.onClick() }}
|
onClick={() => { if (isEnabled) options.onClick() }}
|
||||||
>
|
>
|
||||||
{icon}{options.title ? options.title : ''}
|
{icon}<span className="title">{title}</span>
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -121,4 +121,10 @@ table td, table th {
|
|||||||
|
|
||||||
:disabled {
|
:disabled {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width:550px){
|
||||||
|
.header .title {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user