style(app): indent the sidebar new workspace row
The row only renders under its project header, so stepping it in reads as part of that project rather than as a peer of it. Extra padding rather than margin keeps the hover and pressed fills on the same box as every other sidebar row.
This commit is contained in:
@@ -2415,11 +2415,15 @@ const styles = StyleSheet.create((theme) => ({
|
|||||||
workspaceListContainer: {},
|
workspaceListContainer: {},
|
||||||
// Kept in step with `workspaceRow` above. It stands in a project's list where a workspace row
|
// Kept in step with `workspaceRow` above. It stands in a project's list where a workspace row
|
||||||
// would be, so it takes that row's geometry and both of its fills.
|
// would be, so it takes that row's geometry and both of its fills.
|
||||||
|
//
|
||||||
|
// The one departure is the extra left padding: it only ever renders under its project header, so
|
||||||
|
// the step in reads as belonging to that project. Padding rather than margin, so the hover and
|
||||||
|
// pressed fills stay the same box as every other row in the sidebar.
|
||||||
newWorkspaceGhostRow: {
|
newWorkspaceGhostRow: {
|
||||||
minHeight: 36,
|
minHeight: 36,
|
||||||
marginBottom: theme.spacing[0.5],
|
marginBottom: theme.spacing[0.5],
|
||||||
paddingVertical: theme.spacing[2],
|
paddingVertical: theme.spacing[2],
|
||||||
paddingLeft: theme.spacing[2],
|
paddingLeft: theme.spacing[4],
|
||||||
paddingRight: theme.spacing[3],
|
paddingRight: theme.spacing[3],
|
||||||
borderRadius: theme.borderRadius.lg,
|
borderRadius: theme.borderRadius.lg,
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
|
|||||||
Reference in New Issue
Block a user