1
0
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:
Laurent Cozic
2019-07-13 16:42:57 +01:00
parent 4d9d84a8f3
commit 4d2c9523a3
2 changed files with 10 additions and 1 deletions

View File

@@ -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>
}

View File

@@ -121,4 +121,10 @@ table td, table th {
:disabled {
opacity: 0.6;
}
@media screen and (max-width:550px){
.header .title {
display: none;
}
}