mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-09 15:32:24 +01:00
Add some padding
This commit is contained in:
parent
ca48ea1566
commit
0770a44639
Binary file not shown.
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
@ -23,6 +23,10 @@ export interface LinkPreviewAdditionalProps {
|
||||
|
||||
export type LinkPreviewProps = UrlPreviewViewSnapshotPreview & LinkPreviewActions & LinkPreviewAdditionalProps;
|
||||
|
||||
/**
|
||||
* LinkPreview renders a single preview component for a single link on an event. It is usually rendered as part of
|
||||
* a `UrlPreviewGroupView`.
|
||||
*/
|
||||
export function LinkPreview({ onImageClick, compactLayout, ...preview }: LinkPreviewProps): JSX.Element {
|
||||
const { translate: _t } = useI18n();
|
||||
|
||||
|
||||
@ -19,6 +19,7 @@
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
margin-top: var(--cpd-space-4x);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
@ -33,12 +33,7 @@ export interface UrlPreviewGroupViewActions {
|
||||
}
|
||||
|
||||
/**
|
||||
* UrlPreviewGroupView renders a compact event tile with an icon, title, and optional subtitle/content.
|
||||
*
|
||||
* @example
|
||||
* ```tsx
|
||||
* <UrlPreviewGroupView icon={<Icon />} title="Room created" />
|
||||
* ```
|
||||
* UrlPreviewGroupView renders a list of URL previews for a single event.
|
||||
*/
|
||||
export function UrlPreviewGroupView({ vm }: UrlPreviewGroupViewProps): JSX.Element | null {
|
||||
const { translate: _t } = useI18n();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user