Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update refresh button UI
Leendert de Borst12199af47443
diff --git a/apps/server/AliasVault.Admin/Main/Components/Buttons/RefreshButton.razor b/apps/server/AliasVault.Admin/Main/Components/Buttons/RefreshButton.razorindex 9ec3bcb83..dba84327e 100644--- a/apps/server/AliasVault.Admin/Main/Components/Buttons/RefreshButton.razor+++ b/apps/server/AliasVault.Admin/Main/Components/Buttons/RefreshButton.razor@@ -70,6 +70,6 @@/// <returns>A string containing the CSS classes for the icon.</returns>private string GetIconClasses(){- return $"w-4 h-4 {(IsRefreshing ? "animate-spin-ccw" : "")}";+ return $"w-4 h-4 {(IsRefreshing ? "animate-spin" : "")}";}}diff --git a/apps/server/AliasVault.Admin/Main/Components/Icons/UiIcons.cs b/apps/server/AliasVault.Admin/Main/Components/Icons/UiIcons.csindex f3ce846c2..766951b88 100644--- a/apps/server/AliasVault.Admin/Main/Components/Icons/UiIcons.cs+++ b/apps/server/AliasVault.Admin/Main/Components/Icons/UiIcons.cs@@ -194,7 +194,7 @@ public static class UiIconspublic static UiIconDefinition QuestionMarkCircle { get; } = new("0 0 24 24", new Dictionary<string, object> { { "fill", "none" }, { "stroke", "currentColor" }, { "stroke-width", "2" }, { "stroke-linecap", "round" }, { "stroke-linejoin", "round" } }, @"<path d=""M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z""/>");/// <summary>Gets the "refresh" icon.</summary>- public static UiIconDefinition Refresh { get; } = new("0 0 24 24", new Dictionary<string, object> { { "fill", "none" }, { "stroke", "currentColor" }, { "stroke-width", "2" }, { "stroke-linecap", "round" }, { "stroke-linejoin", "round" } }, @"<path d=""M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15""/>");+ public static UiIconDefinition Refresh { get; } = new("0 0 24 24", new Dictionary<string, object> { { "fill", "none" }, { "stroke", "currentColor" }, { "stroke-width", "2" }, { "stroke-linecap", "round" }, { "stroke-linejoin", "round" } }, @"<path d=""M20 4v5h-.582M4.062 11A8.001 8.001 0 0119.418 9m0 0H15M4 20v-5h.581m0 0a8.003 8.003 0 0015.357-2M4.581 15H9""/>");/// <summary>Gets the "reply" icon.</summary>public static UiIconDefinition Reply { get; } = new("0 0 24 24", new Dictionary<string, object> { { "fill", "none" }, { "stroke", "currentColor" }, { "stroke-width", "2" }, { "stroke-linecap", "round" }, { "stroke-linejoin", "round" } }, @"<path d=""M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6""/>");diff --git a/apps/web/src/components/shared/RefreshButton.tsx b/apps/web/src/components/shared/RefreshButton.tsxindex 44e0942e9..c8ba127c4 100644--- a/apps/web/src/components/shared/RefreshButton.tsx+++ b/apps/web/src/components/shared/RefreshButton.tsx@@ -39,7 +39,7 @@ const RefreshButton: React.FC<RefreshButtonProps> = ({ onClick, buttonText, iconreturn (<Button onClick={() => void handleClick()} display="flex" color="outline" additionalClasses={additionalClasses}>- <Icon name="refresh" className={`${iconOnly ? 'w-5 h-5' : 'w-4 h-4'} ${isRefreshing ? 'animate-spin-ccw' : ''}`} />+ <Icon name="refresh" className={`w-[18px] h-[18px] ${isRefreshing ? 'animate-spin' : ''}`} /><span className={iconOnly ? 'sr-only' : 'ml-2'}>{buttonText}</span></Button>);diff --git a/apps/web/tailwind.config.js b/apps/web/tailwind.config.jsindex 1779d84be..7a0745951 100644--- a/apps/web/tailwind.config.js+++ b/apps/web/tailwind.config.js@@ -33,14 +33,9 @@ export default {'width': 'width',},animation: {- 'spin-ccw': 'spin-ccw 1s linear infinite','drop-slot': 'drop-slot 150ms ease-out',},keyframes: {- 'spin-ccw': {- 'from': { transform: 'rotate(0deg)' },- 'to': { transform: 'rotate(-360deg)' },- },'drop-slot': {'from': { opacity: '0', transform: 'scaleY(0.6)' },'to': { opacity: '1', transform: 'scaleY(1)' },diff --git a/core/assets/icons/ui/refresh.svg b/core/assets/icons/ui/refresh.svgindex cbc279113..10baa5a3c 100644--- a/core/assets/icons/ui/refresh.svg+++ b/core/assets/icons/ui/refresh.svg@@ -1,3 +1,3 @@<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">- <path d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/>+ <path d="M20 4v5h-.582M4.062 11A8.001 8.001 0 0119.418 9m0 0H15M4 20v-5h.581m0 0a8.003 8.003 0 0015.357-2M4.581 15H9"/></svg>diff --git a/core/models/src/icons/UiIcons.ts b/core/models/src/icons/UiIcons.tsindex fd8fd02a7..d6920720f 100644--- a/core/models/src/icons/UiIcons.ts+++ b/core/models/src/icons/UiIcons.ts@@ -85,7 +85,7 @@ export const UiIcons = {'plus-sm': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 6v6m0 0v6m0-6h6m-6 0H6' }]] },'qrcode': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z' }]] },'question-mark-circle': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z' }]] },- 'refresh': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15' }]] },+ 'refresh': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M20 4v5h-.582M4.062 11A8.001 8.001 0 0119.418 9m0 0H15M4 20v-5h.581m0 0a8.003 8.003 0 0015.357-2M4.581 15H9' }]] },'reply': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6' }]] },'search': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' }]] },'shield-check': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z' }]] },