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,
|
||||
});
|
||||
|
||||
const title = options.title ? options.title : '';
|
||||
|
||||
return <a
|
||||
className={classes.join(' ')}
|
||||
style={finalStyle}
|
||||
key={key}
|
||||
href="#"
|
||||
title={title}
|
||||
onClick={() => { if (isEnabled) options.onClick() }}
|
||||
>
|
||||
{icon}{options.title ? options.title : ''}
|
||||
{icon}<span className="title">{title}</span>
|
||||
</a>
|
||||
}
|
||||
|
||||
|
@@ -122,3 +122,9 @@ table td, table th {
|
||||
:disabled {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
@media screen and (max-width:550px){
|
||||
.header .title {
|
||||
display: none;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user