Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Jul 12, 2024
1 parent c282e4a commit 7cc5fff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
5 changes: 0 additions & 5 deletions res/css/views/right_panel/_BaseCard.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ limitations under the License.
flex-shrink: 0;
border-block-end: var(--cpd-border-width-1) solid $separator;

&.mx_BaseCard_header_noBackButton {
/* Pad the left side with the same spacing as the button + gap would have left */
padding-left: var(--cpd-space-14x);
}

.mx_BaseCard_header_spacer {
flex: 1;
}
Expand Down
6 changes: 1 addition & 5 deletions src/components/views/right_panel/BaseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,7 @@ const BaseCard: React.FC<IProps> = forwardRef<HTMLDivElement, IProps>(
onKeyDown={onKeyDown}
>
{shouldRenderHeader && (
<div
className={classNames("mx_BaseCard_header", {
mx_BaseCard_header_noBackButton: !backButton && header,
})}
>
<div className="mx_BaseCard_header">
{backButton}
{typeof header === "string" ? (
<Text size="md" weight="medium" className="mx_BaseCard_header_title">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`AppTile destroys non-persisted right panel widget on room change 1`] =
class="mx_BaseCard mx_WidgetCard"
>
<div
class="mx_BaseCard_header mx_BaseCard_header_noBackButton"
class="mx_BaseCard_header"
>
<div
class="mx_BaseCard_header_title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ exports[`<UserInfo /> with crypto enabled renders <BasicUserInfo /> 1`] = `
class="mx_BaseCard mx_UserInfo"
>
<div
class="mx_BaseCard_header mx_BaseCard_header_noBackButton"
class="mx_BaseCard_header"
>
<p
class="_typography_yh5dq_162 _font-body-md-medium_yh5dq_69 mx_BaseCard_header_title"
Expand Down Expand Up @@ -239,7 +239,7 @@ exports[`<UserInfo /> with crypto enabled should render a deactivate button for
class="mx_BaseCard mx_UserInfo"
>
<div
class="mx_BaseCard_header mx_BaseCard_header_noBackButton"
class="mx_BaseCard_header"
>
<p
class="_typography_yh5dq_162 _font-body-md-medium_yh5dq_69 mx_BaseCard_header_title"
Expand Down

0 comments on commit 7cc5fff

Please sign in to comment.