Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
Adam fixes gaps between the build and Figma by showing Claude the problem instead of describing it, with a pen annotation from the built-in browser plus a Figma link to the selection, and then two screen recordings. He ends by having Claude shorten long date labels so they don't truncate.
What you'll learn
- Use Chrome DevTools to resize the page and test a layout.
- The built-in browser can annotate the page with a pen and add it to the chat.
- A Figma "copy link to selection" points Claude at exactly the part you mean.
- Claude can read screen recordings: powerful but token-heavy; use them when words would take several turns.
- Auto-compaction: Claude summarises a long or idle conversation to save context; it can be turned off.
- Small visual fixes can run in Auto mode without planning.
- A Next.js build error while Claude is still working is usually temporary.
Chapters
- 00:00Spotting two visual gaps
- 02:33Annotating the page for Claude
- 05:51What auto-compaction does
- 07:32Recording the resize problem
- 10:48Claude reads the recordings
- 12:53Shortening long date labels
- 00:00Okay, in this video, let's talk about closing that last remaining visual gaps and the tools that we can use to make this work a little bit more efficient with
- 00:09Claude Code. So, let me go back to our implemented application.
- 00:13A reminder that I'm looking at this in my own browser.
- 00:16I just typed in localhost 3000 uh in my um address bar and we did this because we have spun up a dev server manually, which is something we covered
- 00:26I believe two or three videos ago.
- 00:29Now, um taking a casual walk through the application before op camera, I've noticed like all around it's a very pretty decent implementation.
- 00:39That being said, there are two things that I've noticed that I would like us to take a closer look into.
- 00:44The first one is the thickness of the border around the parking spots.
- 00:49So, around the edges of the entire encapsulating container for this entire grid, things look exactly how we had them in Figma.
- 00:58So, one pixel border over here.
- 01:00But then, if we notice what's happening here in between different parking spots, uh because of stacking borders, um the visual impression that we get is that the borders between
- 01:11these spots are two pixels thick.
- 01:14If we go back to our Figma, we can notice that isn't really how it has been designed here and I would like Claude to take a look at.
- 01:23Um another thing which I've noticed and this only occurred to me the moment I um started testing, you know, how this layout behaves across different resolutions, uh which is
- 01:34something you can do over here by going into like inspect by getting into like um right click and getting into inspect, it will come up with this panel here
- 01:46uh and just by simply dragging and resizing this panel, you can observe how it is only this main column that really shrinks and grows while the column on the
- 01:55left hand side and I'm sorry, yeah, the left hand side and the hand side.
- 02:00They remain pretty much unaffected.
- 02:03And this isn't how I really envisioned this responsiveness to work in this application.
- 02:09I have actually built this layout with with a grid in Figma just so that Claude can get a better understanding of what my intentions are.
- 02:18And my intentions are, and I can actually preview it in the Figma, was to have everything scale and resize responsively.
- 02:27And and this should affect these side columns as well.
- 02:32So two things. Let's tackle all of them one by one.
- 02:36So first, let's let's switch over to Claude Code desktop.
- 02:43Now, how how do I describe this concept here with the stacked borders?
- 02:48It would be pretty difficult to describe it using my own language.
- 02:52And even though I can do a pretty decent job, there are some pretty high chances that Claude will not really be able to understand what I'm saying without an
- 03:02image. Now, of course, I can just take a screenshot here and then maybe use some annotation software to put an arrow or maybe highlight a area that I'm talking
- 03:11about specifically. But luckily, if we are on Claude Code desktop app, there is a built-in browser which we already saw in a couple of other videos.
- 03:20And I can type in the exact same address over here, localhost 3000.
- 03:25And the reason this browser is so cool because it comes with some pretty neat annotation options built in.
- 03:32And I'm going to use it here to my advantage.
- 03:36So let me just find a day that is like quite representative.
- 03:40And I believe this one is because I can clearly see the stacked borders.
- 03:45What I'm going to do is I'm going to maybe let's see if I zoom in.
- 03:49I'm not sure if that is going to be captured in the screenshot, but I'm going to enable the pen tool.
- 03:54No, there is the zoom just reset.
- 03:57Okay, doesn't matter. I'm just going to highlight Um, highlight this area here.
- 04:03Uh, that's a pretty, that's a pretty sketchy sketch.
- 04:07Uh, I'm just going to head here to add this to the chat and I'm going to say, um, okay Claude, so I'm noticing that the borders around parking spot
- 04:17components um, are stacking and um, this creates an illusion of having a two pixel uh, thick borders in between the parking spots.
- 04:28I would like for all of the borders to be exactly one pixel just like we had this in Figma.
- 04:36Okay, I'm going to close the browser here.
- 04:40Let me see um, okay and I think what would be helpful for Claude is if I go back to Figma and maybe just select this portion of my design
- 04:53and I do right click and do um, copy link to selection.
- 04:58What's cool about Figma is that the and we've again covered this in one of the previous videos already as well, um, the link that you create is going to
- 05:07always um, include what you had in your selection.
- 05:12So I'm going to paste that uh, link over here and I'm going to hope that Claude is going to take a screenshot of that specific node in my Figma
- 05:22file. So let's go ahead and hit send.
- 05:25Um, and I 'm going to keep using Alpus 5.5 on medium and I'm going to keep using the auto mode because these are like small visual things, small visual
- 05:34gaps. They don't really require typically a lot of upfront uh, preparation or you know planning.
- 05:41Uh, let's see if that's true in this case.
- 05:43If it doesn't come out all right, uh, we might actually consider uh, like taking a different approach here.
- 05:50Um, okay. Oh, nice.
- 05:52So uh, we have just witnessed something that I wasn't really um, I wasn't really prepared to discuss in this video, but since it happened, let's talk about it.
- 05:59So there was this session compacted uh, uh of text which just disappeared uh after a second.
- 06:06So uh this is that thing that Claude will do every now and then to save on the context window.
- 06:11And you might remember previously it used to be like 28% something along these lines because uh I believe it's been an hour since I um posted any message in
- 06:21this particular session. Um Claude has decided to compact it uh meaning like rather than for this Opus model rather than having access to like this entire transcript of this
- 06:34conversation word for word, it is now going to resume from basically just a compacted summary of the discussion that we've been having over here.
- 06:44Um I am not really afraid of this uh in this particular case because it's not that we've been discussing concepts that I really believe Claude should remember like uh
- 06:55word for word. Um but if this behavior you know drive me crazy there is an option to disable this.
- 07:02For now I believe it's a it's a good thing that we have that uh auto compaction uh running every now and then because it helps us you know have
- 07:10these longer sessions or longer conversations with Claude within one particular session.
- 07:15And as I was saying Claude did all the heavy work uh or at least it claims it has fixed it.
- 07:20Um let's go back to my browser and let's see if this is indeed true.
- 07:26And yes it seems like it seems like this is um this is now fixed.
- 07:32So perfect the first thing is already taken care of.
- 07:36Okay now let's get into that other thing which is the responsive behavior um of the secondary columns.
- 07:42This is something that I could describe using my own words if I wanted.
- 07:46Um but uh just for the sake of this video let's take a look at other thing we can do to make um you know make it a little bit
- 07:54easier for Claude to understand what we are getting at.
- 07:58So in order to describe this um uh or like to demonstrate the problem with the responsive behavior of the side columns I'm actually going do a screen grab.
- 08:09So I'm going to use the built-in QuickTime in my Mac.
- 08:13So I'm going to type in QuickTime Player, and then I'm going to go back over here.
- 08:18Or no, actually I'm going to do new screen recording, and I'm going to go back over here.
- 08:24Let me uh let me do something like this, and I'm going to hit record.
- 08:35Okay, and I'm going to finish the recording.
- 08:38Perfect. I'm going to save it.
- 08:40Um I'm going to save this recording to desktop, and then I'm going to go into Figma, and I'm going to do the exact same thing.
- 08:51There is, I believe, a shortcut in macOS.
- 08:54Yeah, it's the command shift five to quickly bring up the recording tools, and I'm going to do the exact same thing in Figma uh just so that we can
- 09:04capture the difference between the behaviors.
- 09:08Oh, okay, sorry that I just took a screenshot, which is not what I wanted.
- 09:12Oh, let me bring up this as well.
- 09:14I'm going to select record a selected portion.
- 09:20Okay, and I'm going to hit record, and I'm going to do a little bit of wobbles as well, and I'm going to stop the recording.
- 09:28I 'm going to save this to my desktop, and now I 'm going to um describe this in my words, using my own words.
- 09:36I'm going to attach both video files.
- 09:39Um okay, thank you.
- 09:41Another thing which I'm noticing is that side columns don't seem to respond to um viewport resizing.
- 09:50Mm they should not have fixed uh widths.
- 09:54Instead, they should be fluid.
- 09:59Okay, that might not be the most professional way of describing it, but I don't to worry about that because I have my recordings after all.
- 10:06I 'm going to now select both of them.
- 10:08Uh I'm going to go my desktop.
- 10:11Uh, let me make sure that I'm going to include both videos.
- 10:15Uh, okay. Um, and I'm going to actually explain those really quickly.
- 10:21Attached are two screen recordings.
- 10:25Uh, first one showing the behavior of the implemented app and the other one showing the proper resizing behavior in Pitma.
- 10:41Uh, okay. And let's see.
- 10:44I'm going to hit send.
- 10:46And um the reason I'm showing this on camera is because Claude can actually read uh recordings or video files as well.
- 10:55It is not um something that I would recommend we use on a daily basis because reading videos for Claude is quite uh token intensive uh thing to do.
- 11:07It needs to look and analyze all of the different key frames.
- 11:10This is a lot of data uh for Claude to process, but sometimes there is just no easier way to do it and recording or grabbing a quick video and
- 11:18sending it over to Claude is sometimes like faster than having a couple of turns and trying to um explain a very tricky concept uh using just our own words.
- 11:30Um, okay. Let's give Claude a little bit of time to watch the recordings and let's see if it's going to be able to uh understand what the issue is
- 11:39and to come up with a fix.
- 11:42Okay, Claude is requesting access to my desktop folder.
- 11:46It's a fresh machine as I mentioned in one of the previous videos.
- 11:49So if you've never used that uh feature again, you'll see the same thing.
- 11:53Of course, I'm going to give it access to to my desktop folder because it needs to see these recordings and this is what I keep them.
- 12:01[snorts] Um, okay. And we can see it's actually reading the frames.
- 12:05It's reading frame by frame.
- 12:07It's going to do this uh for both videos, I believe.
- 12:10And um yeah, uh let's give it a second to do its thing.
- 12:15Okay. And it has actually figure out again, it's not that I really had to record these videos to describe this particular problem, but I really wanted to capture this
- 12:26as one of the techniques we can use when working with Claude Code.
- 12:33Okay. So Claude has changed the implementation and now it's going to check itself and okay, let's see.
- 12:42Let me go back to my browser here and we can see it's actually working properly.
- 12:50Okay. One last thing before we wrap this up for this video is I'm going to actually fix something that I had in my original design, but I wasn't really
- 13:00accounting for you know, November being such a such a month with like with such a long name in my Figma design.
- 13:11I actually used April, which is conveniently very short, but now having like seeing November in action, I can see there is a truncation problem.
- 13:19So I'm going to ask Claude to truncate or maybe do these shorter version of weekdays and and month names as well.
- 13:28So let me go back to Claude Code and let me say something like this.
- 13:36Okay, thank you Claude.
- 13:37One last thing is I would like us to actually abbreviate weekday names and month names in the left hand sidebar so that we can always display the full date
- 13:51without running into truncation issues.
- 13:56And I'm going to give it an example.
- 13:58For example, Tuesday to November four.
- 14:08I don't think Tuesday was November four this year, but that's not the Um, okay.
- 14:17Let's give it a second.
- 14:20Okay, it seems like uh the initial fix is ready.
- 14:24Yep, there it is.
- 14:25It's much more it's much more like future proof this way even at smaller window sizes.
- 14:32Okay, um what I'm just looking at is um like Next.js build error.
- 14:38This can happen when Claude is still like working on the code.
- 14:41So if you see this window, which I just had for uh a couple of seconds, don't worry.
- 14:48We'll just check if the Claude uh is still working.
- 14:50If it is, just give it some time and if the issue is still there, then you can ask it to uh troubleshoot it.
- 14:56Okay, um so let's see.
- 15:01Oh, to get the always fully visible, I also need to make one small layout change.
- 15:05The short dates alone weren't quite enough.
- 15:07Okay, seems like Claude is, you know, very ambitious here.
- 15:11Um, I raised page minimum width from Okay, got it.
- 15:15Uh-huh. I recommend this over the other alternatives.
- 15:18Um, let's see. I'm going to just double check if everything is all right here.
- 15:24Uh, okay. So what Claude did is um it made um um it made like it gave our page like a minimum width, which is now a bit more generous.
- 15:34And this is I believe a very great introduction to what our next lesson is going to be, which is designing outside of Figma.
- 15:42And we are going to take a closer look into building a mobile layout for this application.
- 15:47So with that, I'm going to see you in the next video.
- 15:49Thank you so much.