feat: outline and align right the total label

This commit is contained in:
0x29a
2023-03-01 16:31:20 +01:00
parent e0c5573c8d
commit 0fa18e4199
2 changed files with 15 additions and 6 deletions

View File

@@ -11,6 +11,8 @@ import CollapsibleFormWidget from '../CollapsibleFormWidget';
import hooks from './hooks';
import messages from '../messages';
import './index.scss';
/**
* Collapsible Form widget controlling video start and end times
* Also displays the total run time of the video.
@@ -69,12 +71,14 @@ export const DurationWidget = ({
</Form.Control.Feedback>
</Form.Group>
</Form.Row>
<div className="mt-4">
{getTotalLabel({
durationString: duration,
subtitle: false,
intl,
})}
<div className="mt-4 mx-2 text-right">
<span className="p-2 total-label rounded">
{getTotalLabel({
durationString: duration,
subtitle: false,
intl,
})}
</span>
</div>
</CollapsibleFormWidget>
);

View File

@@ -0,0 +1,5 @@
@import "@edx/paragon/scss/core/core";
.total-label {
border: 1px solid $gray-500;
}