aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-10 12:36:12 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-10 16:21:20 +0100
commitc9d5f6be49a89fad5a778c0342a27fc3452d863d (patch)
treeff821ba32fc929b45bec6a79847f0e9d58e8452f /src/components
parentf0b4057f15006b3b77530f68ebd754ed4ea98b89 (diff)
refactor(aside): move width from aside to sharing widget
Only the Sharing widget needs the "min-content" width.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Widget/Sharing/Sharing.module.scss (renamed from src/components/Sharing/Sharing.module.scss)1
-rw-r--r--src/components/Widget/Sharing/Sharing.tsx (renamed from src/components/Sharing/Sharing.tsx)0
-rw-r--r--src/components/Widget/index.tsx3
3 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Sharing/Sharing.module.scss b/src/components/Widget/Sharing/Sharing.module.scss
index fe13125..a1ba094 100644
--- a/src/components/Sharing/Sharing.module.scss
+++ b/src/components/Widget/Sharing/Sharing.module.scss
@@ -3,6 +3,7 @@
@use "@styles/abstracts/placeholders";
.wrapper {
+ width: min-content;
max-height: 100vh;
padding-bottom: var(--spacing-sm);
position: sticky;
diff --git a/src/components/Sharing/Sharing.tsx b/src/components/Widget/Sharing/Sharing.tsx
index 4df8e0d..4df8e0d 100644
--- a/src/components/Sharing/Sharing.tsx
+++ b/src/components/Widget/Sharing/Sharing.tsx
diff --git a/src/components/Widget/index.tsx b/src/components/Widget/index.tsx
index e4e346f..d5374ea 100644
--- a/src/components/Widget/index.tsx
+++ b/src/components/Widget/index.tsx
@@ -1,5 +1,6 @@
import RecentPosts from './RecentPosts/RecentPosts';
+import Sharing from './Sharing/Sharing';
import ThematicsList from './ThematicsList/ThematicsList';
import TopicsList from './TopicsList/TopicsList';
-export { RecentPosts, ThematicsList, TopicsList };
+export { RecentPosts, Sharing, ThematicsList, TopicsList };