Skip to content

Build your personal knowledge base with Trilium Notes

style(client): size toast buttons to their labels

Elian Doran8e9af3d1cd93
diff --git a/apps/client/src/widgets/Toast.css b/apps/client/src/widgets/Toast.css
index 37e18e10f6..9672789f70 100644
--- a/apps/client/src/widgets/Toast.css
+++ b/apps/client/src/widgets/Toast.css
@@ -90,14 +90,19 @@
display: flex;
flex-direction: row;
flex-wrap: wrap;
- gap: 1em;
+ justify-content: flex-end;
+ gap: 0.5em;
.btn {
- /* Share the row equally; a lone button still spans the full width. */
- flex: 1;
+ flex: 0 1 auto;
+ white-space: nowrap;
color: var(--bs-toast-color);
background: var(--modal-control-button-background);
+ &:only-child {
+ flex: 1;
+ }
+
&:hover {
background: var(--modal-control-button-hover-background);
color: var(--bs-toast-color);