Ways to increase the width without adjusting the height using CSS

When utilizing material-ui, I am seeking assistance with fixing the full video width on the screen. I have tried using width:auto. Attached below is an image for reference. Could someone please provide guidance on how to resolve this? Thank you in advance.

https://i.sstatic.net/IAnEl.jpg

This is my code snippet:


    <Row className="waitingVideo">
        <Col xs={3} className="waitingRoom">
            <WaitingRoom customerList={waitingRoom} accept={accept} chat={chat} reject={reject}></WaitingRoom>
                <Accordion className={classes.customers}>
                    <AccordionSummary
                        expandIcon={<ExpandMoreIcon />}
                        aria-controls="panel1a-content"
                        id="panel1a-header">
                        <Typography className={classes.heading}>customer 1</Typography>
                        <ChatIcon className={classes.chat} onClick={chat}></ChatIcon>
                    </AccordionSummary>
                    <AccordionDetails>
                        <Typography>Lorem gkfgs shfksk sfkugsk sfkugs hfgsek</Typography>
                    </AccordionDetails>
                </Accordion>
                <Accordion>
                    <AccordionSummary
                        expandIcon={<ExpandMoreIcon />}
                        aria-controls="panel1a-content"
                        id="panel1a-header">
                        <Typography className={classes.heading}>customer 2</Typography>
                        <ChatIcon className={classes.chat} onClick={chat}></ChatIcon>
                    </AccordionSummary>
                    <AccordionDetails>
                        <Typography>Lorem gkfgs shfksk sfkugsk sfkugs hfgsek</Typography>
                    </AccordionDetails>
                </Accordion>
            </Col>
            <Col xs={9}>
                <video  meta name="viewport" content="width=device-width" id="localVideo" width="auto"  autoPlay playsInline controls={false} muted={true}/> 
            </Col>
        </Row>

Answer №1

Consider utilizing height: 100vh to maximize the visible height of the window. To accommodate additional on-screen content, you can adjust this by using calc(100vh - 80px).

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The OnChange event seems to be malfunctioning as it is not being triggered despite other parts of the code functioning properly

Check out the code snippet below: import React, { useState } from "react"; function IP() { const [ipAddress, setIPAddress] = useState(""); const handleInputChange = (event) => { const inputValue = event.target.value; // ...

Spinning around the Y-axis only causes a one-sided flip

Is there a method to ascertain the direction of rotation for the CSS property transform: rotateY? I have been attempting to spin this h1 element from one side to the other, but regardless of using a positive or negative sign, it always rotates in the same ...

Guiding the user to a different React page after a successful login: a simple solution

Currently, I am working on developing my very first full-stack application with React for front-end and Node.js with Express for back-end. I have set up a /login route using react router dom where users can input their email and password ...

Illuminate the active page on the menu bar

Is there a way to dynamically change the menu color based on the selected page? For example: home faq contact_us I need help displaying the currently selected page in the menu bar using CSS, but I'm not sure how to approach this. Here is my curr ...

Live chat application experiencing issues with chat updates

I am currently developing a real-time chat application using socket.io for the server and React for the client-side code. Despite logging correct data in multiple consoles, I encountered an issue where new messages sent by one user are not automatically di ...

Position filter forms on the left side to align with bootstrap cards

I'm having trouble aligning the cards using Bootstrap's row and col- classes. The first three are behaving as expected, but the fourth one isn't cooperating. Any idea why this might be happening and any solutions you can suggest? View the i ...

Utilizing Reactjs componentDidMount for fetching data only in the absence of any values

In my ReactJS application connected to MongoDB-Atlas, I am encountering a problem where the app crashes when there is no data in the database while reading. To display the data on the UI during rendering, I am performing the read operation in the componen ...

Could someone please clarify a specific aspect of how floats work?

Could someone simplify this explanation for me? A float is positioned next to a line box if there is a vertical space that meets these conditions: (a) at or below the top of the line box, (b) at or above the bottom of the line box, (c) below the top margi ...

Hover Effect for 3D Images

I recently came across an interesting 3D Hover Image Effect that I wanted to implement - https://codepen.io/kw7oe/pen/mPeepv. After going through various tutorials and guides, I decided to try styling a component with Materials UI and apply CSS in a differ ...

Checking for new pages in NextJS with the getStaticPaths method

My approach involves using the getStaticPaths function to pre-render all dynamic pages. However, I am now seeking a way to periodically fetch all pages every x seconds. Any ideas on how to achieve this? https://i.sstatic.net/RCmhz.png ...

Issues with rendering images in the browser due to CSS inline-block layout are causing

I have encountered an issue with two divs that are set to 50% width and displayed inline-block. Each div contains an image. I expected both divs to stay on the same line, but sometimes the browser breaks the layout. Here is the HTML code snippet: <div ...

Change the dimensions of a picture from 4:3 to 16:9 while maintaining its responsiveness using CSS

Imagine I have this image with a 4:3 aspect ratio and dimensions of 640x480: https://i.sstatic.net/p4xRM.jpg Here is the code used to display it: <img src="../static/images/image4-3.jpg" class="img-fluid" alt=""> Now ...

GetServerSideProps function yielding varied prop values

I'm currently exploring NextJS and delving into SSR. I've been struggling to grasp the functionality of getServerSideProps(). It seems that it should replace useState in order to be rendered on the backend, but I'm receiving different props ...

Is the dropping of the middle section in the inline list imminent?

After creating a fiddle to check for conflicts with other styles on my page, I ran into an issue with an inline list. There seems to be a slight drop in the middle item's positioning that I can't figure out. Despite trying various margin adjustme ...

Testing React Hooks in TypeScript with Jest and @testing-library/react-hooks

I have a unique custom hook designed to manage the toggling of a product id using a boolean value and toggle function as returns. As I attempt to write a unit test for it following a non-typescripted example, I encountered type-mismatch errors that I' ...

What could be the reason why I am unable to choose my radio button? What error am I

The output can be found here... I am struggling to use a radio button and cannot seem to select it. Can someone please explain what issue I am facing? Any help would be greatly appreciated. const [value, setValue] = React.useState({ yes:"", no:"" ...

Oops! There was an issue while trying to serialize the props returned from getServerSideProps in "..." - we apologize for the inconvenience

Attempting to add a condition within getServerSideProps: export async function getServerSideProps(context) { const jwt = parseCookies(context).jwt || null; if (jwt) { const user = parseJwt(jwt); const userId = user.id; console.log(userId); ...

Ensuring grid columns are equal for varying text sizes

I am looking to achieve equal width and spacing for columns without using the width, min-width, max-width properties. Can anyone help me accomplish this using flex or any other method? https://i.sstatic.net/xo56M.png .d-flex { display: flex; } .d-fl ...

The problem with React Router is that it is not properly passing the ID through

I've been working on a project that utilizes Firebase and React JS. I am facing an issue where I want to set an ID in the Link within the Route Component, but it keeps returning as undefined. The scenario is as follows: first, there is a List of Train ...

Achieving Centered Items with CSS Flexbox and Positioning

Struggling to arrange 3 elements using flexbox while keeping them centered both horizontally and vertically. Here is the desired layout: https://i.sstatic.net/Uo6WS.png This is my current attempt, but it's not working as expected. Can anyone spot t ...