Skip to content

Commit

Permalink
fix(renderer-app): room detailed page overflow (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Mar 1, 2022
1 parent 6c0af07 commit e11d1a1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 22 deletions.
18 changes: 8 additions & 10 deletions desktop/renderer-app/src/components/EditRoomPage/style.less
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
@import "flat-components/theme/fancy-scrollbar.less";

.edit-room-page {
display: flex;
flex-direction: column;
height: 100%;
overflow: auto;
border-radius: 6px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.15);
background-color: #fff;
}

.edit-room-page-header-container {
position: fixed;
width: 86%;
z-index: 1;
margin: 0 24px;
padding: 16px 0;
background-color: #fff;
padding: 16px 24px;
}

.edit-room-page-header-title {
Expand All @@ -22,9 +20,9 @@
}

.edit-room-page-body {
width: 560px;
margin: 0 auto;
margin-top: 20px;
.fancy-scrollbar-mixin();
flex: 1;
padding: 0 148px;
}

.flat-color-scheme-dark {
Expand Down
18 changes: 8 additions & 10 deletions desktop/renderer-app/src/pages/PeriodicRoomDetailPage/index.less
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
@import "flat-components/theme/fancy-scrollbar.less";

.periodic-room-detail-page-container {
display: flex;
flex-direction: column;
height: 100%;
overflow: auto;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.15);
border-radius: 6px;
background-color: #fff;
}

.periodic-room-detail-page-header-container {
position: fixed;
width: 86%;
z-index: 1;
margin: 0 24px;
padding: 16px 0;
background-color: #fff;
padding: 16px 24px;
}

.periodic-room-detail-page-header-title {
Expand All @@ -24,9 +22,9 @@
}

.periodic-room-detail-page-panel-container {
width: 560px;
margin: 0 auto;
margin-top: 65px;
.fancy-scrollbar-mixin();
flex: 1;
padding: 0 148px;
}

.flat-color-scheme-dark {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const PeriodicRoomDetailPage = observer<{}>(function PeriodicRoomDetailPa
onBackPreviousPage={backPreviousPage}
/>
</div>
<div className="periodic-room-detail-page-panel-container fancy-scrollbar">
<div className="periodic-room-detail-page-panel-container">
<PeriodicRoomPanel
inviteBaseUrl={FLAT_WEB_BASE_URL}
isCreator={isCreator}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const PeriodicRoomPanel: React.FC<PeriodicRoomPanelProps> = ({
};

return (
<div className="periodic-room-panel-container fancy-scrollbar">
<div className="periodic-room-panel-container">
<div className="periodic-room-panel-body">
<div className="periodic-room-panel-tips">
<div className="periodic-room-panel-tips-title">
Expand Down

0 comments on commit e11d1a1

Please sign in to comment.