diff --git a/app/soapbox/features/compose/components/upload-progress.tsx b/app/soapbox/features/compose/components/upload-progress.tsx index fd292eb293..1c891653eb 100644 --- a/app/soapbox/features/compose/components/upload-progress.tsx +++ b/app/soapbox/features/compose/components/upload-progress.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import spring from 'react-motion/lib/spring'; +import { spring } from 'react-motion'; -import Icon from 'soapbox/components/icon'; +import { HStack, Icon, Stack, Text } from 'soapbox/components/ui'; import { useAppSelector } from 'soapbox/hooks'; import Motion from '../../ui/util/optional_motion'; @@ -16,23 +16,29 @@ const UploadProgress = () => { } return ( -
-
- -
+ + -
- + + + + -
+
{({ width }) => -
+ (
) }
-
-
+ + ); }; diff --git a/app/styles/chats.scss b/app/styles/chats.scss index 6060e882f7..aefb0cc98a 100644 --- a/app/styles/chats.scss +++ b/app/styles/chats.scss @@ -280,26 +280,6 @@ } .chat-box { - .upload-progress { - padding: 0 10px; - align-items: center; - height: 25px; - - .fa { - font-size: 22px; - } - - &__message { - font-size: 13px; - flex: 1; - align-items: center; - } - - &__backdrop { - margin-top: 2px; - } - } - &__attachment { display: flex; align-items: center; diff --git a/app/styles/components/compose-form.scss b/app/styles/components/compose-form.scss index 7fca9a08af..46745ead1d 100644 --- a/app/styles/components/compose-form.scss +++ b/app/styles/components/compose-form.scss @@ -320,47 +320,6 @@ transform: translateY(1px); } -.upload-progress { - padding: 10px; - color: var(--highlight-text-color); - overflow: hidden; - display: flex; - - .fa { - font-size: 34px; - margin-right: 10px; - } - - span { - font-size: 12px; - text-transform: uppercase; - font-weight: 500; - display: block; - } -} - -.upload-progess__message { - flex: 1 1 auto; -} - -.upload-progress__backdrop { - width: 100%; - height: 6px; - border-radius: 6px; - background: var(--brand-color--med); - position: relative; - margin-top: 5px; -} - -.upload-progress__tracker { - position: absolute; - left: 0; - top: 0; - height: 6px; - background: var(--brand-color); - border-radius: 6px; -} - .privacy-dropdown__dropdown { @apply absolute bg-white dark:bg-slate-900 z-40 rounded-md shadow-lg ml-10 text-sm;