diff --git a/packages/vkui/src/components/Accordion/__image_snapshots__/accordion-ios-webkit-dark-1-snap.png b/packages/vkui/src/components/Accordion/__image_snapshots__/accordion-ios-webkit-dark-1-snap.png index 98acf73946..af7c6364d9 100644 --- a/packages/vkui/src/components/Accordion/__image_snapshots__/accordion-ios-webkit-dark-1-snap.png +++ b/packages/vkui/src/components/Accordion/__image_snapshots__/accordion-ios-webkit-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:42ef0fd737fc56fc662d4d3f53c089f6a3a574eb5619a56606ec87675aefc8ea -size 34288 +oid sha256:fdac3f49cc72f6d48cfef4b055f5deced14cda4f0e4dfbe6b10b234f82a56035 +size 34290 diff --git a/packages/vkui/src/components/Accordion/__image_snapshots__/accordion-ios-webkit-light-1-snap.png b/packages/vkui/src/components/Accordion/__image_snapshots__/accordion-ios-webkit-light-1-snap.png index 1a6924a85f..efb4c78515 100644 --- a/packages/vkui/src/components/Accordion/__image_snapshots__/accordion-ios-webkit-light-1-snap.png +++ b/packages/vkui/src/components/Accordion/__image_snapshots__/accordion-ios-webkit-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:561f1698da03155d04239ea45d6e42c546c07345c3ef07229ff30b7b01904640 -size 32591 +oid sha256:55f7526e19bfda1305a68ab045638f251e7b0f288b9d90d065e7100f3d2ce45a +size 32592 diff --git a/packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-ios-webkit-dark-1-snap.png b/packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-ios-webkit-dark-1-snap.png index a1c4277c3d..eab67947bc 100644 --- a/packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-ios-webkit-dark-1-snap.png +++ b/packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-ios-webkit-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:827438196f7fd8291f51ca231c99ca4a148df8857e4e69ad11cd2d3265a5247e -size 55648 +oid sha256:b9dccd56f4e5ade1fde3e75005656fd656f5ae9b75e025e60439c88cda32aedb +size 55642 diff --git a/packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-ios-webkit-light-1-snap.png b/packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-ios-webkit-light-1-snap.png index 536118c692..5f7a0fdd42 100644 --- a/packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-ios-webkit-light-1-snap.png +++ b/packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-ios-webkit-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d7f55119670a62a7851a98414ec5edf62d3d45cbb40356ab523550513243d592 -size 55051 +oid sha256:400ec28f534e90afa67dd1f5d29b2d7702a66ae2c7324041f447454a16f9ac29 +size 55048 diff --git a/packages/vkui/src/components/SimpleCell/SimpleCell.e2e-playground.tsx b/packages/vkui/src/components/SimpleCell/SimpleCell.e2e-playground.tsx index 784725d9f4..723b04a1ba 100644 --- a/packages/vkui/src/components/SimpleCell/SimpleCell.e2e-playground.tsx +++ b/packages/vkui/src/components/SimpleCell/SimpleCell.e2e-playground.tsx @@ -99,6 +99,10 @@ export const SimpleCellPlayground = (props: ComponentPlaygroundProps) => { ], indicator: ['1:20:22'], }, + { + before: [], + children: ['Title'], + }, ]} > {(props: SimpleCellProps) => } diff --git a/packages/vkui/src/components/SimpleCell/SimpleCell.module.css b/packages/vkui/src/components/SimpleCell/SimpleCell.module.css index 500f71159f..d3bf4784cd 100644 --- a/packages/vkui/src/components/SimpleCell/SimpleCell.module.css +++ b/packages/vkui/src/components/SimpleCell/SimpleCell.module.css @@ -29,6 +29,11 @@ padding-inline-end: 4px; } +/* stylelint-disable-next-line selector-pseudo-class-disallowed-list */ +.SimpleCell__before--ios > :global(.vkuiIcon) { + padding-inline-end: 0; +} + .SimpleCell__before:empty { display: none; } diff --git a/packages/vkui/src/components/SimpleCell/SimpleCell.tsx b/packages/vkui/src/components/SimpleCell/SimpleCell.tsx index 8b0443043e..a4a5735883 100644 --- a/packages/vkui/src/components/SimpleCell/SimpleCell.tsx +++ b/packages/vkui/src/components/SimpleCell/SimpleCell.tsx @@ -115,7 +115,14 @@ export const SimpleCell = ({ className, )} > -
{before}
+
+ {before} +
{subhead && (