fix(app): prevent markdown list content overflow with proper flex shrinking
This commit is contained in:
@@ -216,26 +216,32 @@ export function createMarkdownStyles(theme: Theme) {
|
|||||||
bullet_list: {
|
bullet_list: {
|
||||||
marginVertical: theme.spacing[2],
|
marginVertical: theme.spacing[2],
|
||||||
paddingLeft: theme.spacing[1],
|
paddingLeft: theme.spacing[1],
|
||||||
|
width: "100%" as const,
|
||||||
},
|
},
|
||||||
|
|
||||||
ordered_list: {
|
ordered_list: {
|
||||||
marginVertical: theme.spacing[2],
|
marginVertical: theme.spacing[2],
|
||||||
paddingLeft: theme.spacing[1],
|
paddingLeft: theme.spacing[1],
|
||||||
|
width: "100%" as const,
|
||||||
},
|
},
|
||||||
|
|
||||||
list_item: {
|
list_item: {
|
||||||
marginBottom: theme.spacing[1],
|
marginBottom: theme.spacing[1],
|
||||||
flexDirection: "row" as const,
|
flexDirection: "row" as const,
|
||||||
alignItems: "flex-start" as const,
|
alignItems: "flex-start" as const,
|
||||||
|
width: "100%" as const,
|
||||||
|
flexShrink: 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
bullet_list_content: {
|
bullet_list_content: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
flexShrink: 1,
|
||||||
flexWrap: "wrap" as const,
|
flexWrap: "wrap" as const,
|
||||||
},
|
},
|
||||||
|
|
||||||
ordered_list_content: {
|
ordered_list_content: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
flexShrink: 1,
|
||||||
flexWrap: "wrap" as const,
|
flexWrap: "wrap" as const,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user