mirror of
https://github.com/mue/mue.git
synced 2026-07-16 05:23:49 +02:00
fix: quick link input, close #1124
This commit is contained in:
@@ -32,7 +32,7 @@ const QuickLinks = memo(() => {
|
||||
link.style.fontSize = `${14 * Number(zoom / 100)}px`;
|
||||
}
|
||||
|
||||
if (localStorage.getItem('quickLinksStyle') !== 'text') {
|
||||
if (localStorage.getItem('quickLinksStyle') !== 'text_only') {
|
||||
for (const img of element.getElementsByTagName('img')) {
|
||||
img.style.height = `${30 * Number(zoom / 100)}px`;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ const QuickLinks = memo(() => {
|
||||
const tooltipEnabled = localStorage.getItem('quicklinkstooltip');
|
||||
|
||||
const quickLink = (item, index) => {
|
||||
if (localStorage.getItem('quickLinksStyle') === 'text') {
|
||||
if (localStorage.getItem('quickLinksStyle') === 'text_only') {
|
||||
return (
|
||||
<a
|
||||
className="quicklinkstext"
|
||||
|
||||
@@ -145,6 +145,10 @@
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
font-size: 0.8em;
|
||||
line-height: 1.5;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
@@ -616,6 +620,10 @@ button.quicklinks {
|
||||
padding: 8px 12px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s ease;
|
||||
line-height: 1.5;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
|
||||
Reference in New Issue
Block a user