mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(react/floating_buttons): style differences from original
This commit is contained in:
parent
04de87722b
commit
e4900ce87b
@ -1375,7 +1375,7 @@ div.floating-buttons-children .floating-button:active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* The first visible floating button */
|
/* The first visible floating button */
|
||||||
div.floating-buttons-children > *:nth-child(1 of .visible) {
|
div.floating-buttons-children > *:first-child {
|
||||||
--border-radius: var(--border-radius-size) 0 0 var(--border-radius-size);
|
--border-radius: var(--border-radius-size) 0 0 var(--border-radius-size);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
color: var(--button-text-color);
|
color: var(--button-text-color);
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
border-radius: 100px;
|
border-radius: 100px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.show-floating-buttons-button:hover {
|
.show-floating-buttons-button:hover {
|
||||||
|
@ -100,6 +100,7 @@ function ShowFloatingButton({ setVisible }: { setVisible(visible: boolean): void
|
|||||||
icon="bx bx-chevrons-left"
|
icon="bx bx-chevrons-left"
|
||||||
text={t("show_floating_buttons_button.button_title")}
|
text={t("show_floating_buttons_button.button_title")}
|
||||||
onClick={() => setVisible(true)}
|
onClick={() => setVisible(true)}
|
||||||
|
noIconActionClass
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -112,7 +113,8 @@ function CloseFloatingButton({ setVisible }: { setVisible(visible: boolean): voi
|
|||||||
className="close-floating-buttons-button"
|
className="close-floating-buttons-button"
|
||||||
icon="bx bx-chevrons-right"
|
icon="bx bx-chevrons-right"
|
||||||
text={t("hide_floating_buttons_button.button_title")}
|
text={t("hide_floating_buttons_button.button_title")}
|
||||||
onClick={() => setVisible(false)}
|
onClick={() => setVisible(false)}
|
||||||
|
noIconActionClass
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -31,7 +31,7 @@ export default function ActionButton({ text, icon, className, onClick, triggerCo
|
|||||||
|
|
||||||
return <button
|
return <button
|
||||||
ref={buttonRef}
|
ref={buttonRef}
|
||||||
class={`${className ?? ""} ${!noIconActionClass ? "icon-action" : ""} ${icon}`}
|
class={`${className ?? ""} ${!noIconActionClass ? "icon-action" : "btn"} ${icon}`}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
data-trigger-command={triggerCommand}
|
data-trigger-command={triggerCommand}
|
||||||
/>;
|
/>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user